searchwp\source\post\{$post_type}\parent_attribution
Da: 4.0.0
Indice
Controlla se i risultati di un tipo di post possono essere configurati per attribuire un peso di rilevanza ai loro genitori.
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| Booleano | $enabled |
Risultato di is_post_type_hierarchical( $post_type ) |
4.0.0 |
Esempi
Tutti gli hook dovrebbero essere aggiunti al tuo plugin personalizzato SearchWP Customizations Plugin.
Disabilita l'attribuzione del peso del genitore per le Pagine
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 | |
| // Disable parent weight attribution for Pages in SearchWP. | |
| add_filter( 'searchwp\source\post\page\parent_attribution', '__return_false' ); |
