Class WC_Frontend_Scripts

Handle frontend forms

Package: WooCommerce\Classes\
Category: Class
Author: WooThemes
Version: 2.1.0
Class: WC_Frontend_Scripts
Located at includes/class-wc-frontend-scripts.php

Methods summary

public
# __construct( )

Constructor

Constructor

public static array
# get_styles( )

Get styles for the frontend

Get styles for the frontend

Returns

array
public
# load_scripts( )

Register/queue frontend scripts.

Register/queue frontend scripts.

public
# check_jquery( )

WC requires jQuery 1.8 since it uses functions like .on() for events and .parseHTML. If, by the time wp_print_scrips is called, jQuery is outdated (i.e not using the version in core) we need to deregister it and register the core version of the file.

WC requires jQuery 1.8 since it uses functions like .on() for events and .parseHTML. If, by the time wp_print_scrips is called, jQuery is outdated (i.e not using the version in core) we need to deregister it and register the core version of the file.

public array
# backwards_compat( array $styles )

Provide backwards compat for old constant

Provide backwards compat for old constant

Parameters

$styles
array
$styles

Returns

array

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0