searchwp\source\post\{$post_type}\attribution
Desde: 4.0.0
Sumário
Controle se os resultados de um tipo de postagem podem ser configurados para atribuir todo o peso a outro ID de postagem.
Parâmetros
| Tipo | Parâmetro | Padrão | Desde |
|---|---|---|---|
| Booleano | $enabled |
verdadeiro |
4.0.0 |
Exemplos
All hooks should be added to your custom SearchWP Customizations Plugin.
Desativar atribuição de peso para Páginas
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' ); |

