Frontend_Scripts implements Standard_Service, Registerable, Conditional
Handles the registering of the front-end scripts and stylesheets.
Tags
Interfaces, Classes and Traits
- Standard_Service
- Registerable
- Conditional
Table of Contents
- $plugin : mixed
- __construct() : mixed
- Constructor.
- enqueue_assets() : void
- Enqueue the front-end assets.
- is_required() : bool
- {@inheritdoc}
- register() : void
- {@inheritdoc}
- register_assets() : void
- Register the front-end assets.
Properties
$plugin
private
mixed
$plugin
Tags
Methods
__construct()
Constructor.
public
__construct(Plugin $plugin) : mixed
Parameters
- $plugin : Plugin
Tags
Return values
mixed —enqueue_assets()
Enqueue the front-end assets.
public
enqueue_assets() : void
Tags
Return values
void —is_required()
{@inheritdoc}
public
is_required() : bool
Tags
Return values
bool —register()
{@inheritdoc}
public
register() : void
Tags
Return values
void —register_assets()
Register the front-end assets.
public
register_assets() : void