PHP 클래스 WPSEO_Admin, wordpress-seo

파일 보기 프로젝트 열기: yoast/wordpress-seo

보호된 프로퍼티들

프로퍼티 타입 설명
$admin_features array Array of classes that add admin functionality

공개 메소드들

메소드 설명
__construct ( ) Class constructor
add_action_link ( array $links, string $file ) : array Add a link to the settings page to the plugins list
blog_public_warning ( ) Display an error message when the blog is set to private.
bulk_edit_options ( ) Adds the ability to choose how many posts are displayed per page on the bulk edit pages.
clear_cache ( ) Clears the cache
clear_rewrites ( ) Clear rewrites
config_page_scripts ( ) Enqueues the (tiny) global JS needed for the plugin.
enqueue_assets ( ) Register assets needed on admin pages
enqueue_global_style ( ) Enqueues the (tiny) global stylesheet needed for the plugin.
filter_settings_pages ( array $pages ) : array Filters all advanced settings pages from the given pages.
filter_stopwords_from_slug ( string $slug, string $post_title ) : string Filter the stopwords from the slug
get_admin_features ( ) : array Returns all the classes for the admin features
grant_access ( ) : boolean Check whether the current user is allowed to access the configuration.
import_plugin_hooks ( ) Setting the hooks for importing data from other plugins
load_page ( ) Load the form for a WPSEO admin page
maybe_upgrade ( ) Check whether the current user is allowed to access the configuration.
meta_description_warning ( ) Display an error message when the theme contains a meta description tag.
network_config_page ( ) Loads the form for the network configuration page.
options_init ( ) Register all the options needed for the configuration pages.
register_network_settings_page ( ) Register the settings page for the Network settings.
register_settings_page ( ) Register the menu item and its sub menu's.
remove_stopwords_from_slug ( string $slug ) : string Cleans stopwords out of the slug, if the slug hasn't been set yet.
save_bulk_edit_options ( integer $status, string $option, integer $value ) : integer Saves the posts per page limit for bulk edit pages.
schedule_rewrite_flush ( ) Schedules a rewrite flush to happen at shutdown
stopwords ( ) : array Returns the stopwords for the current language
stopwords_check ( string $haystack, boolean $checkingUrl = false ) : boolean | mixed Check whether the stopword appears in the string
switch_theme ( ) Log the updated timestamp for user profiles when theme is changed
title_metas_help_tab ( ) Adds contextual help to the titles & metas page.
update_contactmethods ( array $contactmethods ) : array Filter the $contactmethods array and add Facebook, Google+ and Twitter.

보호된 메소드들

메소드 설명
set_upsell_notice ( ) Sets the upsell notice.

비공개 메소드들

메소드 설명
get_dismiss_url ( string $dismiss_param ) : string Extending the current page URL with two params to be able to ignore the notice.
get_manage_options_cap ( ) : mixed | void Returns the manage_options cap
get_premium_indicator ( ) : string
localize_admin_global_script ( ) : array Localization for the dismiss urls.

메소드 상세

__construct() 공개 메소드

Class constructor
public __construct ( )

blog_public_warning() 공개 메소드

Display an error message when the blog is set to private.
사용 중단: 3.3
public blog_public_warning ( )

bulk_edit_options() 공개 메소드

Adds the ability to choose how many posts are displayed per page on the bulk edit pages.
public bulk_edit_options ( )

clear_cache() 공개 메소드

Clears the cache
또한 보기: WPSEO_Utils::clear_cache()
사용 중단: 1.5.0
사용 중단: use WPSEO_Utils::clear_cache()
public clear_cache ( )

clear_rewrites() 공개 메소드

Clear rewrites
또한 보기: WPSEO_Utils::clear_rewrites()
사용 중단: 1.5.0
사용 중단: use WPSEO_Utils::clear_rewrites()
public clear_rewrites ( )

config_page_scripts() 공개 메소드

Enqueues the (tiny) global JS needed for the plugin.
public config_page_scripts ( )

enqueue_assets() 공개 메소드

Register assets needed on admin pages
public enqueue_assets ( )

enqueue_global_style() 공개 메소드

Enqueues the (tiny) global stylesheet needed for the plugin.

filter_settings_pages() 공개 메소드

Filters all advanced settings pages from the given pages.
public filter_settings_pages ( array $pages ) : array
$pages array The pages to filter.
리턴 array

filter_stopwords_from_slug() 공개 메소드

Filter the stopwords from the slug
public filter_stopwords_from_slug ( string $slug, string $post_title ) : string
$slug string The current slug, if not empty there will be done nothing.
$post_title string The title which will be used in case of an empty slug.
리턴 string

get_admin_features() 공개 메소드

Returns all the classes for the admin features
public get_admin_features ( ) : array
리턴 array

grant_access() 공개 메소드

Check whether the current user is allowed to access the configuration.
또한 보기: WPSEO_Utils::grant_access()
사용 중단: 1.5.0
사용 중단: use WPSEO_Utils::grant_access()
public grant_access ( ) : boolean
리턴 boolean

import_plugin_hooks() 공개 메소드

Setting the hooks for importing data from other plugins
public import_plugin_hooks ( )

load_page() 공개 메소드

Load the form for a WPSEO admin page
public load_page ( )

maybe_upgrade() 공개 메소드

Check whether the current user is allowed to access the configuration.
또한 보기: WPSEO_Upgrade
사용 중단: 1.5.0
사용 중단: use wpseo_do_upgrade()
public maybe_upgrade ( )

meta_description_warning() 공개 메소드

Display an error message when the theme contains a meta description tag.
사용 중단: 3.3
부터: 1.4.14

network_config_page() 공개 메소드

Loads the form for the network configuration page.
public network_config_page ( )

options_init() 공개 메소드

Register all the options needed for the configuration pages.
또한 보기: WPSEO_Option::register_setting()
사용 중단: 1.5.0
사용 중단: use WPSEO_Option::register_setting() on each individual option
public options_init ( )

register_network_settings_page() 공개 메소드

Register the settings page for the Network settings.

register_settings_page() 공개 메소드

Register the menu item and its sub menu's.

remove_stopwords_from_slug() 공개 메소드

Cleans stopwords out of the slug, if the slug hasn't been set yet.
부터: 1.1.7
public remove_stopwords_from_slug ( string $slug ) : string
$slug string if this isn't empty, the function will return an unaltered slug.
리턴 string $clean_slug cleaned slug

save_bulk_edit_options() 공개 메소드

Saves the posts per page limit for bulk edit pages.
public save_bulk_edit_options ( integer $status, string $option, integer $value ) : integer
$status integer Status value to pass through.
$option string Option name.
$value integer Count value to check.
리턴 integer

schedule_rewrite_flush() 공개 메소드

Schedules a rewrite flush to happen at shutdown

set_upsell_notice() 보호된 메소드

Sets the upsell notice.
protected set_upsell_notice ( )

stopwords() 공개 메소드

Returns the stopwords for the current language
사용 중단: 3.1 Use WPSEO_Admin_Stop_Words::list_stop_words() instead.
부터: 1.1.7
public stopwords ( ) : array
리턴 array $stopwords array of stop words to check and / or remove from slug

stopwords_check() 공개 메소드

Check whether the stopword appears in the string
사용 중단: 3.1
public stopwords_check ( string $haystack, boolean $checkingUrl = false ) : boolean | mixed
$haystack string The string to be checked for the stopword.
$checkingUrl boolean Whether or not we're checking a URL.
리턴 boolean | mixed

switch_theme() 공개 메소드

Log the updated timestamp for user profiles when theme is changed
public switch_theme ( )

title_metas_help_tab() 공개 메소드

Adds contextual help to the titles & metas page.

update_contactmethods() 공개 메소드

These are used with the Facebook author, rel="author" and Twitter cards implementation.
public update_contactmethods ( array $contactmethods ) : array
$contactmethods array currently set contactmethods.
리턴 array $contactmethods with added contactmethods.

프로퍼티 상세

$admin_features 보호되어 있는 프로퍼티

Array of classes that add admin functionality
protected array $admin_features
리턴 array