GF_Script_Asset
Class GF_Script_Asset
Source: includes/assets/class-gf-script-asset.php:16
Details
- Kind:
class - Namespace:
(global) - Extends: GF_Asset
Methods
| Method | Description |
|---|---|
add_localize_data() | Localize data to this script. |
enqueue_asset() | Enqueue the asset. |
print_asset() | Print the asset. |
Method Reference
add_localize_data()
public function add_localize_data( $object_name, $data )
Localize data to this script.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$object_name | string | ||
$data | array |
Returns
void
Since: 2.5
Source: includes/assets/class-gf-script-asset.php:37
enqueue_asset()
public function enqueue_asset()
Enqueue the asset.
Returns
void
Since: 2.5
Source: includes/assets/class-gf-script-asset.php:48
print_asset()
public function print_asset()
Print the asset.
Returns
void
Since: 2.5
Source: includes/assets/class-gf-script-asset.php:67