메소드 | 설명 | |
---|---|---|
add_title_additions ( ) : boolean | Determines whether to add or remove title additions. | |
add_title_pagination ( string $title ) : string | Adds title pagination, if paginated. | |
add_title_protection ( $title, $id ) : string | Adds title protection prefixes. | |
build_title ( string $title = '', string $seplocation = '', array $args = [] ) : string | Builds the title based on input and query status. | |
build_title_doingitwrong ( string $title = '', string $sep = '', string $seplocation = '', array $args = [] ) : string | Builds the title based on input and query status for themes that are doing it wrong. | |
do_title_pre_filter ( string $title, array $args, boolean $escape = true ) : string | Filters the title prior to output. | |
do_title_pro_filter ( string $title, array $args, boolean $escape = true ) : string | Filters the title prior to output. | |
escape_title ( string $title = '', boolean $trim = true ) : string | Escapes and beautifies title. | |
generate_home_title ( boolean $get_custom_field = true, string $seplocation = '', string $deprecated = '', boolean $escape = true, boolean $get_option = true ) : array | Generate the title based on conditions for the home page. | |
generate_title ( array $args = [], boolean $escape = true ) : string | Generate the title based on query conditions. | |
get_custom_field_title ( string $title = '', integer $id = '', string $taxonomy = '' ) : string | Returns custom field title. | |
get_home_title_seplocation ( string $seplocation = '' ) : string | Gets Title Seplocation for the homepage. | |
get_the_404_title ( string $title = '' ) : string | Returns 404 title. | |
get_the_real_archive_title ( object $term = null, array $args = [] ) : string | Gets the archive Title, including filter. Also works in admin. | |
get_the_search_title ( string $title = '', boolean $escape = true ) : string | Returns search title. | |
get_title_separator ( ) : string | Gets Title Separator. | |
get_title_seplocation ( string $seplocation = '', boolean $home = false ) : string | Gets Title Seplocation. | |
home_page_add_title_tagline ( ) : boolean | Determines whether to add home page tagline. | |
parse_title_args ( array $args = [], array $defaults = [], boolean $get_defaults = false ) : array | Parse and sanitize title args. | |
post_title_from_ID ( integer $id, string $title = '' ) : string | Returns Post Title from ID. | |
process_title_additions ( string $title = '', string $blogname = '', string $seplocation = '' ) : string | Adds the title additions to the title. | |
reparse_title_args ( array $args = [] ) : array | Reparses title args. | |
single_term_title ( $prefix = '', $display = true, $term = null ) : string | Fetches single term title. | |
title ( string $title = '', string $sep = '', string $seplocation = '', array $args = [] ) : string | Gets the title. Main function. | |
title_for_home ( string $home_title = '', boolean $get_custom_field = true, boolean $escape = false, boolean $get_option = true ) : string | Gets the title for the static home page. | |
title_for_terms ( array $args = [], boolean $escape = false ) : string | Gets the title for Category, Tag or Taxonomy | |
title_from_custom_field ( string $title = '', boolean $escape = false, integer $id = null, string $taxonomy = null ) : string | Gets the title from custom field | |
title_from_special_fields ( ) : string | Fetches title from special fields, like other plugins with special queries. | |
untitled ( ) : string | Returns untitled title. | |
use_archive_prefix ( object $term = null, array $args = [] ) : boolean | Determines whether to use a title prefix or not. |
메소드 | 설명 | |
---|---|---|
__construct ( ) | Constructor, load parent constructor | |
build_title_notagline ( array $args = [] ) : string | Builds the title based on input, without tagline. | |
get_notagline_title ( array $args = [] ) : string | Build the title based on input, without tagline. |
public add_title_additions ( ) : boolean | ||
리턴 | boolean | True when additions are allowed. |
public add_title_pagination ( string $title ) : string | ||
$title | string | The current Title. |
리턴 | string | Title with maybe pagination added. |
public add_title_protection ( $title, $id ) : string | ||
$title | The current Title. | |
$id | The page ID. | |
리턴 | string | $title with possible affixes. |
public build_title ( string $title = '', string $seplocation = '', array $args = [] ) : string | ||
$title | string | The Title to return |
$seplocation | string | The Title sepeartor location ( accepts 'left' or 'right' ) |
$args | array | : accepted args : { @param int term_id The Taxonomy Term ID @param string taxonomy The Taxonomy name @param bool page_on_front Page on front condition for example generation @param bool placeholder Generate placeholder, ignoring options. @param bool get_custom_field Do not fetch custom title when false. @param bool is_front_page Fetch front page title. } |
리턴 | string | $title Title |
public build_title_doingitwrong ( string $title = '', string $sep = '', string $seplocation = '', array $args = [] ) : string | ||
$title | string | The Title to return |
$sep | string | The Title sepeartor |
$seplocation | string | The Title sepeartor location ( accepts 'left' or 'right' ) |
$args | array | : accepted args : { @param int term_id The Taxonomy Term ID @param string taxonomy The Taxonomy name @param bool placeholder Generate placeholder, ignoring options. @param bool get_custom_field Do not fetch custom title when false. } |
리턴 | string | $title Title |
protected build_title_notagline ( array $args = [] ) : string | ||
$args | array | : accepted args : { @param int term_id The Taxonomy Term ID @param bool placeholder Generate placeholder, ignoring options. @param bool page_on_front Page on front condition for example generation } |
리턴 | string | Title without tagline. |
public generate_home_title ( boolean $get_custom_field = true, string $seplocation = '', string $deprecated = '', boolean $escape = true, boolean $get_option = true ) : array | ||
$get_custom_field | boolean | Fetch Title from Custom Fields. |
$seplocation | string | The separator location |
$deprecated | string | Deprecated: The Home Page separator location |
$escape | boolean | Parse Title through saninitation calls. |
$get_option | boolean | Whether to fetch the SEO Settings option. |
리턴 | array | { 'title' => (string) $title : The Generated Title 'blogname' => (string) $blogname : The Generated Blogname 'add_tagline' => (bool) $add_tagline : Whether to add the tagline 'seplocation' => (string) $seplocation : The Separator Location } |
public get_home_title_seplocation ( string $seplocation = '' ) : string | ||
$seplocation | string | The current seplocation. |
리턴 | string | The Seplocation for the homepage. |
protected get_notagline_title ( array $args = [] ) : string | ||
$args | array | : accepted args : { @param int term_id The Taxonomy Term ID @param bool placeholder Generate placeholder, ignoring options. @param bool page_on_front Page on front condition for example generation } |
리턴 | string | Title without tagline. |
public get_the_404_title ( string $title = '' ) : string | ||
$title | string | The current Title |
리턴 | string | 404 Title |
public get_title_separator ( ) : string | ||
리턴 | string | The Separator, unescaped. |
public home_page_add_title_tagline ( ) : boolean | ||
리턴 | boolean |
public reparse_title_args ( array $args = [] ) : array | ||
$args | array | required The passed arguments. |
리턴 | array | $args parsed args. |
public single_term_title ( $prefix = '', $display = true, $term = null ) : string | ||
리턴 | string | Single term title. |
public title ( string $title = '', string $sep = '', string $seplocation = '', array $args = [] ) : string | ||
$title | string | The Title to return |
$sep | string | The Title sepeartor |
$seplocation | string | The Title sepeartor location ( accepts 'left' or 'right' ) |
$args | array | : accepted args : { @param int term_id The Taxonomy Term ID when taxonomy is also filled in. Else post ID. @param string taxonomy The Taxonomy name. @param bool page_on_front Page on front condition for example generation. @param bool placeholder Generate placeholder, ignoring options. @param bool notagline Generate title without tagline. @param bool meta Ignore doing_it_wrong. Used in og:title/twitter:title @param bool get_custom_field Do not fetch custom title when false. @param bool description_title Fetch title for description. @param bool is_front_page Fetch front page title. } |
리턴 | string | $title Title |
public title_for_home ( string $home_title = '', boolean $get_custom_field = true, boolean $escape = false, boolean $get_option = true ) : string | ||
$home_title | string | The fallback title. |
$get_custom_field | boolean | Fetch Title from InPost Custom Fields. |
$escape | boolean | Parse Title through saninitation calls. |
$get_option | boolean | Whether to fetch the SEO Settings option. |
리턴 | string | The Title. |
public title_from_custom_field ( string $title = '', boolean $escape = false, integer $id = null, string $taxonomy = null ) : string | ||
$title | string | the fallback title. |
$escape | boolean | Parse Title through saninitation calls. |
$id | integer | The Post ID. |
$taxonomy | string | The term name. |
리턴 | string | The Title. |
public title_from_special_fields ( ) : string | ||
리턴 | string | $title Title from Special Field. |