Метод | Описание | |
---|---|---|
add_filter ( string $filter, string $option, array | string $suboption = null ) : boolean | Add sanitization filters to options. | |
autodescription_add_option_filter ( string $filter, string $option, string | array $suboption = null ) : true | Registers option sanitation filter | |
s_excerpt ( string $excerpt = '' ) : string | Escapes input excerpt. | |
sanitize ( mixed $new_value, string $option ) : mixed | Sanitize a value, via the sanitization filter type associated with an option. | |
sanitizer_filters ( ) | Register each of the settings with a sanitization filter type. | |
verify_seo_settings_nonce ( ) : boolean | Checks the SEO Settings page nonce. Returns false if nonce can't be found. |
Метод | Описание | |
---|---|---|
__construct ( ) | Constructor, load parent constructor | |
do_filter ( string $filter, string $new_value, string $old_value ) : mixed | Checks sanitization filter exists, and if so, passes the value through it. | |
get_available_filters ( ) : array | Return array of known sanitization filter types. | |
get_option_filters ( ) : array | Returns sanitation filters from cache. | |
s_absint ( mixed $new_value ) : integer | Returns a positive integer value. | |
s_description ( string $new_value ) : string | Returns a one-line sanitized description | |
s_description_separator ( mixed $new_value ) : string | Returns the description separator value string. | |
s_email_address ( string $new_value ) : string | Makes Email Addresses safe, via sanitize_email() | |
s_knowledge_type ( mixed $new_value ) : string | Returns the knowledge type value string. | |
s_left_right ( mixed $new_value ) : string | Returns left or right, for the separator location. | |
s_left_right_home ( mixed $new_value ) : string | Returns left or right, for the home separator location. | |
s_no_html ( string $new_value ) : string | Removes HTML tags from string. | |
s_no_html_space ( string $new_value ) : string | Removes HTML tags and line breaks from string. | |
s_one_zero ( mixed $new_value ) : integer | Returns a 1 or 0, for all truthy / falsy values. | |
s_one_zero_flush_rewrite ( mixed $new_value ) : integer | Returns a 1 or 0, for all truthy / falsy values. | |
s_one_zero_flush_sitemap ( mixed $new_value ) : integer | Returns a 1 or 0, for all truthy / falsy values. | |
s_redirect_url ( string $new_value ) : string | Sanitize the Redirect URL | |
s_relative_url ( string $url ) : string | Converts full URL paths to absolute paths. | |
s_safe_html ( string $new_value ) : string | Removes unsafe HTML tags, via wp_kses_post(). | |
s_title ( string $new_value ) : string | Returns a sanitized and trimmed title. | |
s_title_separator ( mixed $new_value ) : string | Returns the title separator value string. | |
s_twitter_card ( string $new_value ) : string | Parses Twitter Card radio input. Fills in default if incorrect value is supplied. | |
s_twitter_name ( string $new_value ) : string | Parses Twitter name and site. Adds @ if it wasn't supplied. | |
s_url ( string $new_value ) : string | Makes URLs safe | |
s_url_query ( string $new_value ) : string | Makes URLs safe and removes query args. | |
set_option_filter ( string $filter, string $option, array | string $suboption = null, boolean $get = false ) : boolean | Sets sanitation filters cache. |
public autodescription_add_option_filter ( string $filter, string $option, string | array $suboption = null ) : true | ||
$filter | string | The filter to call (see The_SEO_Framework_Site_Options::$available_filters for options) |
$option | string | The WordPress option name |
$suboption | string | array | Optional. The suboption or suboptions you want to filter |
Результат | true |
protected get_available_filters ( ) : array | ||
Результат | array | Array with keys of sanitization types, and values of the filter function name as a callback |
protected get_option_filters ( ) : array | ||
Результат | array | Filters with their associated (sub)options. |
protected s_description ( string $new_value ) : string | ||
$new_value | string | The Description. |
Результат | string | One line sanitized description. |
protected s_description_separator ( mixed $new_value ) : string | ||
$new_value | mixed | Should be identical to any of the $this->description_separator values |
Результат | string | Description separator option |
protected s_email_address ( string $new_value ) : string | ||
$new_value | string | String, an email address, possibly unsafe. |
Результат | string | String a safe email address |
protected s_knowledge_type ( mixed $new_value ) : string | ||
$new_value | mixed | Should be identical to any of the $person_organization values. |
Результат | string | title Knowledge type option |
protected s_left_right ( mixed $new_value ) : string | ||
$new_value | mixed | Should ideally be a string 'left' or 'right' passed in. |
Результат | string | left or right |
protected s_left_right_home ( mixed $new_value ) : string | ||
$new_value | mixed | Should ideally be a string 'left' or 'right' passed in. |
Результат | string | left or right |
protected s_no_html_space ( string $new_value ) : string | ||
$new_value | string | String, possibly with HTML and spaces in it. |
Результат | string | String without HTML and breaks in it. |
protected s_one_zero ( mixed $new_value ) : integer | ||
$new_value | mixed | Should ideally be a 1 or 0 integer passed in. |
Результат | integer | 1 or 0. |
protected s_one_zero_flush_rewrite ( mixed $new_value ) : integer | ||
$new_value | mixed | Should ideally be a 1 or 0 integer passed in. |
Результат | integer | 1 or 0. |
protected s_one_zero_flush_sitemap ( mixed $new_value ) : integer | ||
$new_value | mixed | Should ideally be a 1 or 0 integer passed in. |
Результат | integer | 1 or 0. |
protected s_redirect_url ( string $new_value ) : string | ||
$new_value | string | String with potentially unwanted redirect URL. |
Результат | string | The Sanitized Redirect URL |
protected s_relative_url ( string $url ) : string | ||
$url | string | Full Path URL or relative URL. |
Результат | string | Abolute path. |
protected s_safe_html ( string $new_value ) : string | ||
$new_value | string | String with potentially unsafe HTML in it. |
Результат | string | String with only safe HTML in it |
protected s_title_separator ( mixed $new_value ) : string | ||
$new_value | mixed | Should be identical to any of the $this->get_separator_list() values |
Результат | string | Title separator option |
protected s_twitter_card ( string $new_value ) : string | ||
$new_value | string | String with potentially wrong option value. |
Результат | string | Sanitized twitter card type. |
protected s_twitter_name ( string $new_value ) : string | ||
$new_value | string | String with potentially wrong Twitter username. |
Результат | string | String with 'correct' Twitter username |
protected s_url_query ( string $new_value ) : string | ||
$new_value | string | String, a URL, possibly unsafe. |
Результат | string | String a safe URL with Query Arguments. |
public sanitizer_filters ( ) |
protected set_option_filter ( string $filter, string $option, array | string $suboption = null, boolean $get = false ) : boolean | ||
$filter | string | Sanitization filter type |
$option | string | Option key |
$suboption | array | string | Optional. Suboption key |
$get | boolean | Whether to retrieve cache. |
Результат | boolean | Returns true when complete |
public verify_seo_settings_nonce ( ) : boolean | ||
Результат | boolean | True if verified and matches. False if can't verify. |