PHP Класс The_SEO_Framework\Search

Excludes pages from search based on options.
С версии: 2.7.1
Наследование: extends Generate_Ldjson
Показать файл Открыть проект

Открытые методы

Метод Описание
adjust_search_filter ( array $query ) : void Excludes posts from search with certain metadata.
get_excluded_search_ids ( ) : array Fetches posts with exclude_local_search option on
search_filter ( array $query ) : void Fetches posts with exclude_local_search option on.

Защищенные методы

Метод Описание
__construct ( ) Constructor, loads parent constructor and adds filters.

Описание методов

__construct() защищенный Метод

Constructor, loads parent constructor and adds filters.
protected __construct ( )

adjust_search_filter() публичный Метод

For now, it only looks at 'exclude_local_search'. If it exists, the post or page will be excluded from the local Search Results.
С версии: 2.7.0
public adjust_search_filter ( array $query ) : void
$query array The possible search query.
Результат void Early if no search query is found.

get_excluded_search_ids() публичный Метод

Fetches posts with exclude_local_search option on
С версии: 2.7.0
С версии: 2.7.0 No longer used.
public get_excluded_search_ids ( ) : array
Результат array Excluded Post IDs

search_filter() публичный Метод

Fetches posts with exclude_local_search option on.
С версии: 2.1.7
С версии: 2.7.0 No longer used for performance reasons.
public search_filter ( array $query ) : void
$query array The possible search query.
Результат void Early if no search query is found.