PHP 클래스 WC_Frontend_Scripts

파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
get_styles ( ) : array Get styles for the frontend.
init ( ) Hook in methods.
load_scripts ( ) Register/queue frontend scripts.
localize_printed_scripts ( ) Localize scripts only when enqueued.

비공개 메소드들

메소드 설명
enqueue_script ( string $handle, string $path = '', string[] $deps = ['jquery'], string $version = WC_VERSION, boolean $in_footer = true ) Register and enqueue a script for use.
enqueue_style ( string $handle, string $path = '', string[] $deps = [], string $version = WC_VERSION, string $media = 'all' ) Register and enqueue a styles for use.
get_script_data ( string $handle ) : array | boolean Return data for script handles.
localize_script ( string $handle ) Localize a WC script once.
register_script ( string $handle, string $path, string[] $deps = ['jquery'], string $version = WC_VERSION, boolean $in_footer = true ) Register a script for use.
register_style ( string $handle, string $path, string[] $deps = [], string $version = WC_VERSION, string $media = 'all' ) Register a style for use.

메소드 상세

get_styles() 공개 정적인 메소드

Get styles for the frontend.
public static get_styles ( ) : array
리턴 array

init() 공개 정적인 메소드

Hook in methods.
public static init ( )

load_scripts() 공개 정적인 메소드

Register/queue frontend scripts.
public static load_scripts ( )

localize_printed_scripts() 공개 정적인 메소드

Localize scripts only when enqueued.
public static localize_printed_scripts ( )