GF_Asset
Class GF_Asset
Source: includes/assets/class-gf-asset.php:18
Details
- Kind:
class - Namespace:
(global)
Properties
| Property | Type | Description |
|---|---|---|
$handle | string | |
$url | string |
Methods
| Method | Description |
|---|---|
__construct() | GF_Asset constructor. |
enqueue_asset() | Handle enqueueing the asset this class represents (e.g., using wp_enqueue_script() or wp_enqueue_style()) |
print_asset() | Handle printing the asset this class represents (e.g., using wp_print_scripts() or wp_print_styles()) |
Method Reference
__construct()
public function __construct( $handle, $url='' )
GF_Asset constructor.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$handle | string | ||
$url | string | '' |
Source: includes/assets/class-gf-asset.php:36
enqueue_asset()
abstract public function enqueue_asset()
Handle enqueueing the asset this class represents (e.g., using wp_enqueue_script() or wp_enqueue_style())
Returns
void
Source: includes/assets/class-gf-asset.php:46
print_asset()
abstract public function print_asset()
Handle printing the asset this class represents (e.g., using wp_print_scripts() or wp_print_styles())
Returns
void
Source: includes/assets/class-gf-asset.php:53