PHP 클래스 The_SEO_Framework\Generate

Generates general SEO data based on content.
부터: 2.7.1
상속: extends Term_Data
파일 보기 프로젝트 열기: sybrew/the-seo-framework

공개 메소드들

메소드 설명
fetch_locale ( $match = '' ) : string Matches WordPress locales.
generate_og_type ( ) : string Generates the Open Graph type based on query status.
generate_twitter_card_type ( ) : string Generates the Twitter Card type. When there's an image found, it will take the said option. Otherwise, it will fall back to 'summary'.
get_blogdescription ( ) : string Fetch blog description.
get_blogname ( ) : string Fetches blogname.
get_separator ( string $type = 'title', boolean $escape = true ) : string Returns cached and parsed separator option.
get_separator_list ( ) : array List of title separators.
get_twitter_card_types ( ) : array Returns array of Twitter Card Types
robots_meta ( ) : array | null Output the index, follow, noodp, noydir, noarchive robots meta code in array

보호된 메소드들

메소드 설명
__construct ( ) Constructor, load parent constructor

메소드 상세

__construct() 보호된 메소드

Constructor, load parent constructor
protected __construct ( )

fetch_locale() 공개 메소드

If not matched, it will calculate a locale.
부터: 2.5.2
public fetch_locale ( $match = '' ) : string
$match the locale to match. Defaults to WordPress locale.
리턴 string Facebook acceptable OG locale.

generate_og_type() 공개 메소드

Generates the Open Graph type based on query status.
부터: 2.7.0
public generate_og_type ( ) : string
리턴 string The Open Graph type.

generate_twitter_card_type() 공개 메소드

Generates the Twitter Card type. When there's an image found, it will take the said option. Otherwise, it will fall back to 'summary'.
부터: 2.7.0
public generate_twitter_card_type ( ) : string
리턴 string The Twitter Card type.

get_blogdescription() 공개 메소드

Fetch blog description.
부터: 2.5.2
public get_blogdescription ( ) : string
리턴 string $blogname The trimmed and sanitized blog description.

get_blogname() 공개 메소드

Fetches blogname.
부터: 2.5.2
public get_blogname ( ) : string
리턴 string $blogname The trimmed and sanitized blogname.

get_separator() 공개 메소드

Returns cached and parsed separator option.
부터: 2.3.9
public get_separator ( string $type = 'title', boolean $escape = true ) : string
$type string The separator type. Used to fetch option.
$escape boolean Escape the separator.
리턴 string The separator.

get_separator_list() 공개 메소드

List of title separators.
부터: 2.6.0
public get_separator_list ( ) : array
리턴 array Title separators.

get_twitter_card_types() 공개 메소드

Returns array of Twitter Card Types
부터: 2.6.0
public get_twitter_card_types ( ) : array
리턴 array Twitter Card types.

robots_meta() 공개 메소드

Output the index, follow, noodp, noydir, noarchive robots meta code in array
부터: 2.2.2
public robots_meta ( ) : array | null
리턴 array | null robots