PHP Class The_SEO_Framework\Deprecated

Contains all deprecated functions.
Since: 2.7.1
Inheritance: extends Feed
Mostra file Open project: sybrew/the-seo-framework

Public Methods

Method Description
current_theme_supports ( string $feature ) : boolean Checks a theme's support for a given feature
delete_auto_description_blog_transient ( string $old_option ) : string Delete transient for the automatic description for blog on save request.
detect_seo_plugins_old ( ) : boolean Old style method for detecting SEO plugins.
echo_debug_information ( mixed $values ) Echo debug values.
exclude_search_ids ( ) : array Fetches posts with exclude_local_search option on
get_current_post_type ( boolean $public = true ) : boolean | string Returns Post Type from current screen.
get_placeholder_title ( string $title = '', array $args = [] ) : string Build the title based on input, without tagline.
get_relative_url ( integer | object $post = null, boolean $external = false, integer $depr = null ) : relative Generates relative URL for current post_ID.
get_term_filter ( object $term, string $taxonomy ) : object Add term meta data into options table of the term.
get_terms_filter ( array $terms, string $taxonomy ) : array Adds The SEO Framework term meta data to functions that return multiple terms.
get_the_archive_title ( ) Get the archive Title.
has_og_plugin ( ) : boolean Detects if plugins outputting og:type exists
has_sitemap_plugin ( ) : boolean Detecs sitemap plugins
homepage_metabox_additions ( ) HomePage Metabox Additions Tab Output.
homepage_metabox_general ( ) HomePage Metabox General Tab Output.
homepage_metabox_robots ( ) HomePage Metabox Robots Tab Output
in_array ( string | array $needle, array $array, $strict = true ) : boolean Faster way of doing an in_array search compared to default PHP behavior.
initialize_defaults ( ) : void Initializes default settings very early at the after_setup_theme hook Therefore supports is_rtl().
initialize_defaults_admin ( ) : void Initializes default settings very early at the after_setup_theme hook.
is_locale ( string $str, boolean $use_cache = true ) : boolean Detect WordPress language.
ping_yahoo ( ) Ping Yahoo
seo_column ( string $column, integer $post_id, string $tax_id = '' ) Adds the SEO Bar.
setup_sitemap_transient ( $sitemap_content ) Create sitemap.xml content transient.
taxonomy_seo_save ( integer $term_id, integer $tt_id ) : void Save taxonomy meta data.
term_meta_delete ( integer $term_id, integer $tt_id ) Delete term meta data.
the_seo_framework_version ( $version = '' ) : string Doing it Wrong The SEO Framework version wrapper.
the_url_path_default_permalink_structure ( object | integer $post = null, boolean $paged = false, boolean $paged_plural = true ) : string Creates canonical url for the default permalink structure.
title_doing_it_wrong ( ) Add doing it wrong html code in the footer.
wpmudev_domainmap_flush_fix ( boolean $options_saved = false, boolean $flush_now = true ) Add the WPMUdev Domain Mapping rules again. And flush them on init.

Protected Methods

Method Description
__construct ( ) Constructor. Loads parent constructor.
supported_screens ( array $args = [] ) : array Helper function for allowed post/page screens where this plugin is active.

Method Details

__construct() protected method

Constructor. Loads parent constructor.
protected __construct ( )

current_theme_supports() public method

Checks a theme's support for a given feature
Deprecation:
Since: 2.2.5
Since: 2.6.0
public current_theme_supports ( string $feature ) : boolean
$feature string the feature being checked
return boolean Taken from WP Core, but it now returns true on title-tag support.

delete_auto_description_blog_transient() public method

Returns old option, since that's passed for sanitation within WP Core.
Deprecation:
Since: 2.3.3
Since: 2.7.0
public delete_auto_description_blog_transient ( string $old_option ) : string
$old_option string The previous blog description option.
return string Previous option.

detect_seo_plugins_old() public method

Old style method for detecting SEO plugins.
Deprecation:
Since: 2.6.1
Since: 2.6.1
public detect_seo_plugins_old ( ) : boolean
return boolean

echo_debug_information() public method

Echo debug values.
Deprecation:
Since: 2.3.4
Since: 2.6.0 Deprecated.
Since: 2.7.1 Removed output, as it's no longer available.
public echo_debug_information ( mixed $values )
$values mixed What to be output.

exclude_search_ids() public method

Fetches posts with exclude_local_search option on
Deprecation:
Since: 2.1.7
Since: 2.7.0 Deprecated.
public exclude_search_ids ( ) : array
return array Excluded Post IDs

get_current_post_type() public method

Returns Post Type from current screen.
Deprecation:
Since: 2.6.0
Since: 2.6.1
public get_current_post_type ( boolean $public = true ) : boolean | string
$public boolean Whether to only get Public Post types.
return boolean | string The Post Type

get_placeholder_title() public method

Note: Not escaped.
Deprecation:
Since: 2.4.0
Since: 2.6.0
public get_placeholder_title ( string $title = '', array $args = [] ) : string
$title string The Title to return
$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 }
return string Title without tagline.

get_relative_url() public method

Generates relative URL for current post_ID.
Deprecation:
Since: 2.3.0
Since: 2.6.5
public get_relative_url ( integer | object $post = null, boolean $external = false, integer $depr = null ) : relative
$post integer | object The post object or ID.
$external boolean Whether to fetch the WP Request or get the permalink by Post Object.
$depr integer Deprecated The post ID.
return relative Post or Page url.

get_term_filter() public method

Adds separated database options for terms, as the terms table doesn't allow for addition. Applies filters array the_seo_framework_term_meta_defaults : Array of default term SEO options Applies filters mixed the_seo_framework_term_meta_{field} : Override filter for specifics. Applies filters array the_seo_framework_term_meta : Override output for term or taxonomy.
Deprecation: silently.
Since: 2.1.8
public get_term_filter ( object $term, string $taxonomy ) : object
$term object Database row object.
$taxonomy string Taxonomy name that $term is part of.
return object $term Database row object.

get_terms_filter() public method

Adds The SEO Framework term meta data to functions that return multiple terms.
Deprecation: silently.
Since: 2.0.0
public get_terms_filter ( array $terms, string $taxonomy ) : array
$terms array Database row objects.
$taxonomy string Taxonomy name that $terms are part of.
return array $terms Database row objects.

get_the_archive_title() public method

WordPress core function @since 4.1.0
Deprecation:
Since: 2.3.6
Since: 2.6.0

has_og_plugin() public method

Detects if plugins outputting og:type exists
Deprecation:
Since: 1.3.0
Since: 2.2.5
Since: 2.6.1
public has_og_plugin ( ) : boolean
return boolean OG plugin detected.

has_sitemap_plugin() public method

Detecs sitemap plugins
Deprecation:
Since: 2.1.0
Since: 2.6.1
public has_sitemap_plugin ( ) : boolean
return boolean

homepage_metabox_additions() public method

HomePage Metabox Additions Tab Output.
Deprecation:
Since: 2.6.0
Since: 2.7.0

homepage_metabox_general() public method

HomePage Metabox General Tab Output.
Deprecation:
Since: 2.6.0
Since: 2.7.0

homepage_metabox_robots() public method

HomePage Metabox Robots Tab Output
Deprecation:
Since: 2.6.0
Since: 2.7.0

in_array() public method

Faster way of doing an in_array search compared to default PHP behavior.
Deprecation:
Since: 2.5.2
Since: 2.7.0 Deprecated.
public in_array ( string | array $needle, array $array, $strict = true ) : boolean
$needle string | array The needle(s) to search for
$array array The single dimensional array to search in.
return boolean true if value is in array.

initialize_defaults() public method

Initializes default settings very early at the after_setup_theme hook Therefore supports is_rtl().
Deprecation:
Since: 2.5.0
Since: 2.6.0
public initialize_defaults ( ) : void
return void

initialize_defaults_admin() public method

Admin only.
Deprecation:
Since: 2.5.0
Since: 2.6.0
public initialize_defaults_admin ( ) : void
return void

is_locale() public method

Considers en_UK, en_US, etc.
Deprecation:
Since: 2.3.8
Since: 2.6.0
public is_locale ( string $str, boolean $use_cache = true ) : boolean
$str string Required, the locale.
$use_cache boolean Set to false to bypass the cache.
return boolean

ping_yahoo() public method

Ping Yahoo
Deprecation:
Since: 2.2.9
Since: 2.6.0
public ping_yahoo ( )

seo_column() public method

Adds the SEO Bar.
Deprecation:
Since: 2.1.9
Since: 2.6.0
public seo_column ( string $column, integer $post_id, string $tax_id = '' )
$column string the current column : If it's a taxonomy, this is empty
$post_id integer the post id : If it's a taxonomy, this is the column name
$tax_id string this is empty : If it's a taxonomy, this is the taxonomy id

setup_sitemap_transient() public method

Create sitemap.xml content transient.
Deprecation:
Since: 2.2.9
Since: 2.6.0
public setup_sitemap_transient ( $sitemap_content )

supported_screens() protected method

Helper function for allowed post/page screens where this plugin is active.
Deprecation:
Since: 2.1.9 Applies filters the_seo_framework_supported_screens : The supported administration screens where css and javascript files are loaded.
Since: 2.5.2
protected supported_screens ( array $args = [] ) : array
$args array the custom supported screens.
return array $screens

taxonomy_seo_save() public method

Fires when a user edits and saves a taxonomy.
Deprecation: silently.
Since: 2.1.8
public taxonomy_seo_save ( integer $term_id, integer $tt_id ) : void
$term_id integer Term ID.
$tt_id integer Term Taxonomy ID.
return void Early on AJAX call.

term_meta_delete() public method

Fires when a user deletes a term.
Deprecation: silently.
Since: 2.1.8
public term_meta_delete ( integer $term_id, integer $tt_id )
$term_id integer Term ID.
$tt_id integer Taxonomy Term ID.

the_seo_framework_version() public method

Doing it Wrong The SEO Framework version wrapper.
Deprecation:
Since: 2.3.0
Since: 2.6.6
public the_seo_framework_version ( $version = '' ) : string
return string The SEO Framework version.

title_doing_it_wrong() public method

Add doing it wrong html code in the footer.
Deprecation:
Since: 2.2.5
Since: 2.5.2.1

wpmudev_domainmap_flush_fix() public method

Domain Mapping bugfix.
Deprecation:
Since: 2.3.0
Since: 2.6.3
public wpmudev_domainmap_flush_fix ( boolean $options_saved = false, boolean $flush_now = true )
$options_saved boolean : If we're in admin and the sanitiation function runs.
$flush_now boolean : Whether to flush directly on call if not yet flushed. Only when $options_saved is false. Runs a flush and updates the site option to "true". When the site option is set to true, it not flush again on init. If $options_saved is true, it will not check for the init action hook and continue, So it will flush the next time on init.