searchwp\source\post\attributes\comments\email
Da: 4.0.0
Indice
Quando i commenti sono stati aggiunti a una sorgente basata su WP_Post, controlla se l'email del commento viene indicizzata.
Parametri
| Tipo | Parametro | Predefinito | Da | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Booleano | $enabled |
false |
4.0.0 |
||||||
| Array |
$args
|
4.0.0 |
|||||||
Esempi
All hooks should be added to your custom SearchWP Customizations Plugin.
Indicizza l'email dell'autore del commento
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 ); |

