searchwp\source\post\attributes\comments\email
Seit: 4.0.0
Wenn Kommentare zu einer WP_Post-basierten Quelle hinzugefügt wurden, steuern Sie, ob die Kommentar-E-Mail indiziert wird.
Parameter
| Typ | Parameter | Standard | Seit | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Boolean | $enabled |
false |
4.0.0 |
||||||
| Array |
$args
|
4.0.0 |
|||||||
Beispiele
All hooks should be added to your custom SearchWP Customizations Plugin.
Index Kommentar-Autor-E-Mail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Enble Comment Author Email indexing in SearchWP. | |
| add_filter( 'searchwp\source\post\attributes\comments\email', function( $enabled, $args ) { | |
| return true; | |
| }, 10, 2 ); |

