Метод | Описание | |
---|---|---|
enqueue_script ( string $script ) | Enqueues scripts. | |
enqueue_style ( string $style ) | Enqueues styles. | |
register_assets ( ) | Calls the functions that register scripts and styles with the scripts and styles to be registered as arguments. | |
register_script ( WPSEO_Admin_Asset $script ) | Registers scripts based on it's parameters. | |
register_scripts ( array $scripts ) | Registers all the scripts passed to it. | |
register_style ( WPSEO_Admin_Asset $style ) | Registers styles based on it's parameters. | |
register_styles ( array $styles ) | Registers all the styles it recieves. | |
special_styles ( ) : array | A list of styles that shouldn't be registered but are needed in other locations in the plugin. |
Метод | Описание | |
---|---|---|
scripts_to_be_registered ( ) : array | Returns the scripts that need to be registered. | |
styles_to_be_registered ( ) : array | Returns the styles that need to be registered. |
public enqueue_script ( string $script ) | ||
$script | string | The name of the script to enqueue. |
public enqueue_style ( string $style ) | ||
$style | string | The name of the style to enqueue. |
public register_assets ( ) |
public register_script ( WPSEO_Admin_Asset $script ) | ||
$script | WPSEO_Admin_Asset | The script to register. |
public register_scripts ( array $scripts ) | ||
$scripts | array | The scripts passed to it. |
public register_style ( WPSEO_Admin_Asset $style ) | ||
$style | WPSEO_Admin_Asset | The style to register. |
public register_styles ( array $styles ) | ||
$styles | array | Styles that need to be registerd. |
public special_styles ( ) : array | ||
Результат | array |