searchwp\source\post\attributes\comments\email
Depuis : 4.0.0
Table des matières
Lorsque des commentaires ont été ajoutés à une source basée sur WP_Post, contrôlez si l’e-mail du commentaire est indexé.
Paramètres
| Type | Paramètre | Défaut | Depuis | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Booléen | $enabled |
faux |
4.0.0 |
||||||
| Tableau |
$args
|
4.0.0 |
|||||||
Exemples
All hooks should be added to your custom SearchWP Customizations Plugin.
Indexer l’e-mail de l’auteur du commentaire
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 ); |

