Method | Description | |
---|---|---|
active_plugins ( ) : array | Returns list of active plugins. | |
can_do_sitemap_robots ( ) : boolean | Determines whether to add a line within robots based by plugin detection, or sitemap output option. | |
can_get_term_meta ( ) : boolean | Determines whether we can use the new WordPress core term meta functionality. | |
can_i_use ( array $plugins = [], boolean $use_cache = true ) | Detect if you can use the given constants, functions and classes. | |
can_manipulate_title ( ) : boolean | Checks whether we can use special manipulation filters. | |
check_wp_locale ( string $locale = '', boolean $use_cache = true ) : boolean | Detect WordPress language. | |
conflicting_plugins ( ) : array | Filterable list of conflicting plugins. | |
current_theme_supports_title_tag ( ) : boolean | Checks a theme's support for title-tag. | |
detect_og_plugin ( ) : boolean | Determines if other Open Graph or SEO plugins are active. | |
detect_plugin ( array $plugins ) : boolean | Detect active plugin by constant, class or function existence. | |
detect_plugin_multi ( array $plugins ) : boolean | Detect active plugin by constant, class or function existence. | |
detect_seo_plugins ( ) : boolean | Determines if other SEO plugins are active. | |
detect_sitemap_plugin ( ) : boolean | Determines if other Sitemap plugins are active. | |
detect_theme_support ( $features, boolean $use_cache = true ) : boolean | Checks for current theme support. | |
detect_twitter_card_plugin ( ) : boolean | Determines if other Twitter Card plugins are active. | |
get_conflicting_plugins ( string $type = 'seo_tools' ) : array | Fetches type of conflicting plugins. | |
get_supported_post_type ( boolean $public = true, string $post_type = '' ) : boolean | string | Checks (current) Post Type for if this plugin may use it. | |
has_json_ld_plugin ( ) : boolean | Determines if other Schema.org LD+Json plugins are active. | |
has_page_on_front ( ) : boolean | Determines whether a page or blog is on front. | |
has_robots_txt ( ) : boolean | Detects presence of robots.txt in root folder. | |
has_sitemap_xml ( ) : boolean | Detects presence of sitemap.xml in root folder. | |
is_domainmapping_active ( ) : boolean | Detects WPMUdev Domain Mapping plugin. | |
is_donncha_domainmapping_active ( ) : boolean | Detects Donncha Domain Mapping plugin. | |
is_post_type_page ( string $type ) : boolean | Detect if the current screen type is a page or taxonomy. | |
is_qtranslate_active ( ) : boolean | Detect qTranslate X plugin. | |
is_theme ( string | array $themes = '' ) : boolean | Checks if the (parent) theme name is loaded. | |
is_wpml_active ( ) : boolean | Detects WPML plugin. | |
post_type_supports_custom_seo ( string $post_type = '' ) : boolean | Check if post type supports The SEO Framework. | |
post_type_supports_inpost ( string | null $post_type = null ) : boolean | Determines if the post type is compatible with The SEO Framework inpost metabox. | |
set_tell_title_doing_it_wrong ( null | string $title = null, null | string $sep = null, null | string $seplocation = null ) : void | Sets up doing it wrong html code for in the footer. | |
tell_title_doing_it_wrong ( null | string $title = null, null | string $sep = null, null | string $seplocation = null, boolean $output = true ) : void | Adds doing it wrong html code in the footer. | |
theme_title_doing_it_right ( ) : boolean | Determines whether the theme is outputting the title correctly based on transient. | |
theme_title_fix_active ( ) : boolean | Detect theme title fix extension plugin. | |
wp_version ( string $version = '4.3.0', string $compare = '>=' ) : boolean | Determines if WP is above or below a version |
Method | Description | |
---|---|---|
__construct ( ) | Constructor, load parent constructor |
public active_plugins ( ) : array | ||
return | array | List of active plugins. |
public can_do_sitemap_robots ( ) : boolean | ||
return | boolean | True when no conflicting plugins are detected or when The SEO Framework's Sitemaps are output. |
public can_get_term_meta ( ) : boolean | ||
return | boolean | True when WordPress is at version 4.4 or higher and has an accordingly upgraded database. |
public can_manipulate_title ( ) : boolean | ||
return | boolean | True if we can manipulate title. |
public conflicting_plugins ( ) : array | ||
return | array | List of conflicting plugins. |
public current_theme_supports_title_tag ( ) : boolean | ||
return | boolean |
public detect_og_plugin ( ) : boolean | ||
return | boolean | True if OG or SEO plugin detected. |
public detect_plugin ( array $plugins ) : boolean | ||
$plugins | array | Array of array for constants, classes and / or functions to check for plugin existence. |
return | boolean | True if plugin exists or false if plugin constant, class or function not detected. |
public detect_plugin_multi ( array $plugins ) : boolean | ||
$plugins | array | Array of array for constants, classes and / or functions to check for plugin existence. |
return | boolean | True if ALL functions classes and constants exists or false if plugin constant, class or function not detected. |
public detect_seo_plugins ( ) : boolean | ||
return | boolean | SEO plugin detected. |
public detect_sitemap_plugin ( ) : boolean | ||
return | boolean |
public detect_theme_support ( $features, boolean $use_cache = true ) : boolean | ||
$use_cache | boolean | If set to false don't use cache. |
return | boolean | theme support. |
public detect_twitter_card_plugin ( ) : boolean | ||
return | boolean | Twitter Card plugin detected. |
public get_conflicting_plugins ( string $type = 'seo_tools' ) : array | ||
$type | string | The Key from $this->conflicting_plugins() |
return | array |
public has_json_ld_plugin ( ) : boolean | ||
return | boolean | Whether another Schema.org plugin is active. |
public has_page_on_front ( ) : boolean | ||
return | boolean |
public has_robots_txt ( ) : boolean | ||
return | boolean | Whether the robots.txt file exists. |
public has_sitemap_xml ( ) : boolean | ||
return | boolean | Whether the sitemap.xml file exists. |
public is_domainmapping_active ( ) : boolean | ||
return | boolean |
public is_donncha_domainmapping_active ( ) : boolean | ||
return | boolean |
public is_post_type_page ( string $type ) : boolean | ||
$type | string | the Screen type |
return | boolean | true if post type is a page or post |
public is_qtranslate_active ( ) : boolean | ||
return | boolean |
public is_wpml_active ( ) : boolean | ||
return | boolean |
public post_type_supports_custom_seo ( string $post_type = '' ) : boolean | ||
$post_type | string | The current post type. |
return | boolean | true of post type is supported. |
public tell_title_doing_it_wrong ( null | string $title = null, null | string $sep = null, null | string $seplocation = null, boolean $output = true ) : void | ||
$title | null | string | The given title |
$sep | null | string | The separator |
$seplocation | null | string | Whether the blogname is left or right. |
$output | boolean | Whether to store cache values or echo the output in the footer. |
return | void |
public theme_title_doing_it_right ( ) : boolean | ||
return | boolean | True theme is doing it right. |
public theme_title_fix_active ( ) : boolean | ||
return | boolean | True theme will do it right. |
public wp_version ( string $version = '4.3.0', string $compare = '>=' ) : boolean | ||
$version | string | the three part version to compare to WordPress |
$compare | string | the comparing operator, default "$version >= Current WP Version" |
return | boolean | True if the WordPress version comparison passes. Note: When using $compare = '>' it will be false when they are equal. |