PHP Class The_SEO_Framework\Generate

Generates general SEO data based on content.
Since: 2.7.1
Inheritance: extends Term_Data
ファイルを表示 Open project: sybrew/the-seo-framework

Public Methods

Method Description
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

Protected Methods

Method Description
__construct ( ) Constructor, load parent constructor

Method Details

__construct() protected method

Constructor, load parent constructor
protected __construct ( )

fetch_locale() public method

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

generate_og_type() public method

Generates the Open Graph type based on query status.
Since: 2.7.0
public generate_og_type ( ) : string
return string The Open Graph type.

generate_twitter_card_type() public method

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

get_blogdescription() public method

Fetch blog description.
Since: 2.5.2
public get_blogdescription ( ) : string
return string $blogname The trimmed and sanitized blog description.

get_blogname() public method

Fetches blogname.
Since: 2.5.2
public get_blogname ( ) : string
return string $blogname The trimmed and sanitized blogname.

get_separator() public method

Returns cached and parsed separator option.
Since: 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.
return string The separator.

get_separator_list() public method

List of title separators.
Since: 2.6.0
public get_separator_list ( ) : array
return array Title separators.

get_twitter_card_types() public method

Returns array of Twitter Card Types
Since: 2.6.0
public get_twitter_card_types ( ) : array
return array Twitter Card types.

robots_meta() public method

Output the index, follow, noodp, noydir, noarchive robots meta code in array
Since: 2.2.2
public robots_meta ( ) : array | null
return array | null robots