\ReduxFramework_spinner

Summary

Methods
Properties
Constants
__construct()
render()
clean()
enqueue()
localize()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct( $field,  $value,  $parent)

Field Constructor.

Required - must call the parent constructor, then assign field and value to vars, and obviously call the render field function

Parameters

$field
$value
$parent

render()

render()

Field Render Function.

Takes the vars and outputs the HTML for the field in the settings

clean()

clean()

Clean the field data to the fields defaults given the parameters.

enqueue()

enqueue()

Enqueue Function.

If this field requires any scripts, or css define this function and register/enqueue the scripts/css

localize()

localize( $field,  $value) : array

Functions to pass data from the PHP to the JS at render time.

Parameters

$field
$value

Returns

array —

Params to be saved as a javascript object accessable to the UI.