searchwp\source\post\{$post_type}\attribution
Da: 4.0.0
Indice
Controlla se i risultati di un tipo di post possono essere configurati per attribuire tutto il peso a un altro ID di post.
Parametri
| Tipo | Parametro | Predefinito | Da |
|---|---|---|---|
| Booleano | $enabled |
vero |
4.0.0 |
Esempi
All hooks should be added to your custom SearchWP Customizations Plugin.
Disabilita l'attribuzione del peso 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 weight attribution for Pages in SearchWP. | |
| add_filter( 'searchwp\source\post\page\attribution', '__return_false' ); |

