PHP 클래스 WPSEO_Admin_Asset_Manager, wordpress-seo

파일 보기 프로젝트 열기: yoast/wordpress-seo 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

enqueue_script() 공개 메소드

Enqueues scripts.
public enqueue_script ( string $script )
$script string The name of the script to enqueue.

enqueue_style() 공개 메소드

Enqueues styles.
public enqueue_style ( string $style )
$style string The name of the style to enqueue.

register_assets() 공개 메소드

Calls the functions that register scripts and styles with the scripts and styles to be registered as arguments.
public register_assets ( )

register_script() 공개 메소드

Registers scripts based on it's parameters.
public register_script ( WPSEO_Admin_Asset $script )
$script WPSEO_Admin_Asset The script to register.

register_scripts() 공개 메소드

Registers all the scripts passed to it.
public register_scripts ( array $scripts )
$scripts array The scripts passed to it.

register_style() 공개 메소드

Registers styles based on it's parameters.
public register_style ( WPSEO_Admin_Asset $style )
$style WPSEO_Admin_Asset The style to register.

register_styles() 공개 메소드

Registers all the styles it recieves.
public register_styles ( array $styles )
$styles array Styles that need to be registerd.

special_styles() 공개 메소드

A list of styles that shouldn't be registered but are needed in other locations in the plugin.
public special_styles ( ) : array
리턴 array