PHP Класс WC_Frontend_Scripts

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 ( )