PHP 클래스 The_SEO_Framework\Admin_Init

Initializes the plugin for the wp-admin screens. Enqueues CSS and Javascript.
부터: 2.7.1
상속: extends Init
파일 보기 프로젝트 열기: sybrew/the-seo-framework

공개 프로퍼티들

프로퍼티 타입 설명
$css_name CSS script name identifier to be used with enqueuing.
$js_name JavaScript name identifier to be used with enqueuing.

보호된 프로퍼티들

프로퍼티 타입 설명
$page_base_file The page base file.

공개 메소드들

메소드 설명
admin_redirect ( string $page, array $query_args = [] ) : null Redirect the user to an admin page, and add query args to the URL string for alerts, etc.
enqueue_admin_css ( $hook ) CSS for the AutoDescription Bar
enqueue_admin_javascript ( string $hook ) Enqueues scripts.
enqueue_admin_scripts ( string $hook ) Enqueues scripts in the admin area on the supported screens.
init_admin_scripts ( $direct = false ) Registers admin scripts and styles.
localize_admin_javascript ( ) Localizes admin javascript.
register_admin_javascript ( ) Registers admin CSS.
wp_ajax_update_counter_type ( ) Handles counter option update on AJAX request.

보호된 메소드들

메소드 설명
__construct ( ) Constructor. Loads parent constructor, registers script names and adds actions.
get_javascript_l10n ( ) : array Generate Javascript Localization.
register_admin_css ( ) Registers Admin CSS.

메소드 상세

__construct() 보호된 메소드

Constructor. Loads parent constructor, registers script names and adds actions.
protected __construct ( )

admin_redirect() 공개 메소드

Redirect the user to an admin page, and add query args to the URL string for alerts, etc.
부터: 2.2.2
public admin_redirect ( string $page, array $query_args = [] ) : null
$page string Menu slug.
$query_args array Optional. Associative array of query string arguments (key => value). Default is an empty array.
리턴 null Return early if first argument is false.

enqueue_admin_css() 공개 메소드

CSS for the AutoDescription Bar
부터: 2.1.9
public enqueue_admin_css ( $hook )
$hook the current page

enqueue_admin_javascript() 공개 메소드

Enqueues scripts.
부터: 2.0.2
public enqueue_admin_javascript ( string $hook )
$hook string The current page hook.

enqueue_admin_scripts() 공개 메소드

Enqueues scripts in the admin area on the supported screens.
부터: 2.3.3
public enqueue_admin_scripts ( string $hook )
$hook string The current page hook.

get_javascript_l10n() 보호된 메소드

Generate Javascript Localization.
부터: 2.6.0
부터: 2.7.0 Added AJAX nonce: 'autodescription-ajax-nonce'
부터: 2.7.1 Added input detection: 'hasInput'
protected get_javascript_l10n ( ) : array
리턴 array $strings The l10n strings.

init_admin_scripts() 공개 메소드

Registers admin scripts and styles.
부터: 2.6.0
public init_admin_scripts ( $direct = false )

localize_admin_javascript() 공개 메소드

Localizes admin javascript.
부터: 2.5.2.2

register_admin_css() 보호된 메소드

Registers Admin CSS.
부터: 2.6.0
protected register_admin_css ( )

register_admin_javascript() 공개 메소드

Registers admin CSS.
부터: 2.6.0

wp_ajax_update_counter_type() 공개 메소드

Handles counter option update on AJAX request.
부터: 2.6.0

프로퍼티 상세

$css_name 공개적으로 프로퍼티

CSS script name identifier to be used with enqueuing.
부터: 2.6.0
public $css_name

$js_name 공개적으로 프로퍼티

JavaScript name identifier to be used with enqueuing.
부터: 2.5.2.2
public $js_name

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

The page base file.
부터: 2.5.2.2
protected $page_base_file