searchwp\source\post\attributes\comments\email
Desde: 4.0.0
Sumário
Quando os comentários foram adicionados a uma Fonte baseada em WP_Post, controle se o e-mail do comentário é indexado.
Parâmetros
| Tipo | Parâmetro | Padrão | Desde | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Booleano | $enabled |
falso |
4.0.0 |
||||||
| Array |
$args
|
4.0.0 |
|||||||
Exemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Indexar E-mail do Autor do Comentário
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 ); |

