Method | Description | |
---|---|---|
__call ( string $name, array $arguments ) : void | Handles unapproachable invoked methods. | |
__get ( $name ) : mixed | Handles unapproachable invoked properties. | |
allow_external_redirect ( ) : boolean | Whether to allow external redirect through the 301 redirect option. | |
code_wrap ( string $content ) : string | Mark up content with code tags. | |
code_wrap_noesc ( string $content ) : string | Mark up content with code tags. | |
current_blog_is_spam_or_deleted ( ) : boolean | Whether the current blog is spam or deleted. | |
description ( string $content, boolean $block = true ) : string | Mark up content in description wrap. | |
description_noesc ( string $content, boolean $block = true ) : string | Mark up content in description wrap. | |
do_dismissible_notice ( $message = '', $type = 'updated', boolean $a11y = true, boolean $escape = true ) | Echos generated dismissible notice. | |
generate_dismissible_notice ( string $message = '', string $type = 'updated', boolean $a11y = true, boolean $escape = true ) : string | Generates dismissible notice. | |
get_custom_field ( string $field, integer $post_id = null ) : string | boolean | Return custom field post meta data. | |
get_the_front_page_ID ( ) : integer | Returns the front page ID, if home is a page. | |
get_timezone_string ( boolean $guess = false ) : string | empty | Returns the PHP timezone compatible string. | |
get_view ( string $view, array $args = [], string $instance = 'main' ) | Fetches files based on input to reduce memory overhead. | |
get_word_count ( string $string, integer $amount = 3, integer $amount_bother = 5, integer $bother_length = 3 ) : array | Counts words encounters from input string. | |
gmt2date ( string $format = 'Y-m-d', string $time = '' ) : string | Converts time from GMT input to given format. | |
is_blog_public ( ) : boolean | Checks if blog is public through WordPress core settings. | |
is_checked ( string $value ) : boolean | Checks if the string input is exactly '1'. | |
is_option_checked ( string $option ) : boolean | Checks if the option is used and checked. | |
maybe_lowercase_noun ( $noun ) : string | Whether to lowercase the noun or keep it UCfirst. | |
object_cache_get ( string $key, string $group = 'the_seo_framework', boolean $force = false, boolean &$found = null ) : mixed | Object cache get wrapper. | |
object_cache_set ( string $key, mixed $data, integer $expire, string $group = 'the_seo_framework' ) : boolean | Object cache set wrapper. | |
plugin_action_links ( array $links = [] ) | Adds link from plugins page to SEO Settings page. | |
post_type_support ( ) | Adds post type support for The SEO Framework. | |
proportionate_dimensions ( integer $i, integer $r1, integer $r2 ) : integer | Proportionate dimensions based on Width and Height. | |
reset_timezone ( ) : boolean | Resets the timezone to default or UTC. | |
seo_settings_page_url ( ) : string | Returns the SEO Settings page URL. | |
set_timezone ( string $tzstring = '', boolean $reset = false ) : boolean | Sets and resets the timezone. | |
settings_capability ( ) : string | Returns the minimum role required to adjust settings. |
Method | Description | |
---|---|---|
__clone ( ) | Cloning of this object is forbidden. | |
__construct ( ) | Constructor. Loads actions and filters. | |
__wakeup ( ) | Unserializing instances of this object is forbidden. | |
clean_reponse_header ( ) : boolean | Destroys output buffer, if any. To be used with AJAX and XML to clear any PHP errors or dumps. | |
get_tzstring_from_offset ( integer $offset ) : string | Fetches the Timezone String from given offset. | |
get_view_instance ( string $base, string $instance = 'main' ) : string | Fetches view instance for switch. | |
google_language ( ) : string | Google docs language determinator. |
final protected __wakeup ( ) |
public allow_external_redirect ( ) : boolean | ||
return | boolean | Whether external redirect is allowed. |
protected clean_reponse_header ( ) : boolean | ||
return | boolean | True on clear. False otherwise. |
public code_wrap_noesc ( string $content ) : string | ||
$content | string | Content to be wrapped in code tags. |
return | string | Content wrapped in code tags. |
public current_blog_is_spam_or_deleted ( ) : boolean | ||
return | boolean | Current blog is spam. |
public do_dismissible_notice ( $message = '', $type = 'updated', boolean $a11y = true, boolean $escape = true ) | ||
$message | The notice message. Expected to be escaped if $escape is false. | |
$type | The notice type : 'updated', 'error', 'warning'. Expected to be escaped. | |
$a11y | boolean | Whether to add an accessibility icon. |
$escape | boolean | Whether to escape the whole output. |
public generate_dismissible_notice ( string $message = '', string $type = 'updated', boolean $a11y = true, boolean $escape = true ) : string | ||
$message | string | The notice message. Expected to be escaped if $escape is false. |
$type | string | The notice type : 'updated', 'error', 'warning'. Expected to be escaped. |
$a11y | boolean | Whether to add an accessibility icon. |
$escape | boolean | Whether to escape the whole output. |
return | string | The dismissible error notice. |
public get_the_front_page_ID ( ) : integer | ||
return | integer | the ID. |
public get_timezone_string ( boolean $guess = false ) : string | empty | ||
$guess | boolean | : If true, the timezone will be guessed from the WordPress core gmt_offset option. |
return | string | empty | PHP Timezone String. |
protected get_tzstring_from_offset ( integer $offset ) : string | ||
$offset | integer | The GMT offzet. |
return | string | PHP Timezone String. |
public get_word_count ( string $string, integer $amount = 3, integer $amount_bother = 5, integer $bother_length = 3 ) : array | ||
$string | string | Required. The string to count words in. |
$amount | integer | Minimum amount of words to encounter in the string. Set to 0 to count all words longer than $bother_length. |
$amount_bother | integer | Minimum amount of words to encounter in the string that fall under the $bother_length. Set to 0 to count all words shorter than $bother_length. |
$bother_length | integer | The maximum string length of a word to pass for $amount_bother instead of $amount. Set to 0 to pass all words through $amount_bother |
return | array | Containing arrays of words with their count. |
protected google_language ( ) : string | ||
return | string | language code |
public is_blog_public ( ) : boolean | ||
return | boolean | True is blog is public. |
public is_checked ( string $value ) : boolean | ||
$value | string | The value to check. |
return | boolean | true if value is '1' |
public is_option_checked ( string $option ) : boolean | ||
$option | string | The option name. |
return | boolean | Option is checked. |
public maybe_lowercase_noun ( $noun ) : string | ||
return | string | The maybe lowercase noun. |
public object_cache_get ( string $key, string $group = 'the_seo_framework', boolean $force = false, boolean &$found = null ) : mixed | ||
$key | string | The Object cache key. |
$group | string | The Object cache group. |
$force | boolean | Whether to force an update of the local cache. |
$found | boolean | Whether the key was found in the cache. Disambiguates a return of false, a storable value. |
return | mixed | wp_cache_get if object caching is allowed. False otherwise. |
public object_cache_set ( string $key, mixed $data, integer $expire, string $group = 'the_seo_framework' ) : boolean | ||
$key | string | The Object cache key. |
$data | mixed | The Object cache data. |
$expire | integer | The Object cache expire time. |
$group | string | The Object cache group. |
return | boolean | true on set, false when disabled. |
public plugin_action_links ( array $links = [] ) | ||
$links | array | The current links. |
public post_type_support ( ) |
public reset_timezone ( ) : boolean | ||
return | boolean | True on success. False on failure. |
public seo_settings_page_url ( ) : string | ||
return | string | The escaped SEO Settings page URL. |
public set_timezone ( string $tzstring = '', boolean $reset = false ) : boolean | ||
$tzstring | string | Optional. The PHP Timezone string. Best to leave empty to always get a correct one. |
$reset | boolean | Whether to reset to default. Ignoring first parameter. |
return | boolean | True on success. False on failure. |
public settings_capability ( ) : string | ||
return | string | The minimum required capability for SEO Settings. |