apply_filters( 'jsps_load_assets', $load, $mode, $options ) → {boolean}
Whether the plugin CSS and JS are loaded on the current page.
Useful when the option "Load CSS & JS only where buttons are displayed" is active
and your theme prints the buttons with
juiz_sps() in a template: return true
on those templates to load the CSS in the <head> (else it's loaded in the footer).
Parameters:
| Name | Type | Description |
|---|---|---|
$load |
boolean |
true if the assets are loaded.
|
$mode |
string |
The option value: always or auto.
|
$options |
array | All the plugin options. |
- Since:
- 2.4.0 First version
- Source:
Returns:
true to load the assets.
- Type
- boolean