PHP Класс The_SEO_Framework\Admin_Init

Initializes the plugin for the wp-admin screens. Enqueues CSS and Javascript.
С версии: 2.7.1
Наследование: extends Init
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$css_name CSS script name identifier to be used with enqueuing.
$js_name JavaScript name identifier to be used with enqueuing.

Защищенные свойства (Protected)

Свойство Тип Описание
$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