PHP 클래스 The_SEO_Framework\Search

Excludes pages from search based on options.
부터: 2.7.1
상속: extends Generate_Ldjson
파일 보기 프로젝트 열기: sybrew/the-seo-framework

공개 메소드들

메소드 설명
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.