AppointmentFormWidget extends AbstractWidget
in package

Tags
since
1.3

Table of Contents

$fields  : array<string|int, AbstractField>
__construct()  : mixed
filterArgs()  : array<string|int, mixed>
Filters the widget's settings before displaying it on the frontend.
form()  : mixed
Backend view of the widget.
getDescription()  : string
getId()  : string
getName()  : string
load()  : mixed
register()  : mixed
update()  : array<string|int, mixed>
Sanitize widget form values as they are saved.
widget()  : mixed
Frontend view of the widget.
addActions()  : mixed
enqueueScripts()  : mixed
Enqueue widget scripts: - front-end scripts - payment gateways api handler scripts
filterWidgetArgs()  : mixed
getFields()  : array<string|int, mixed>
renderContent()  : string
renderForm()  : string

Properties

$fields

public array<string|int, AbstractField> $fields = []
Tags
since
1.3

Methods

__construct()

public __construct([array<string|int, mixed> $widgetOptions = [] ]) : mixed
Parameters
$widgetOptions : array<string|int, mixed> = []

Optional.

Tags
since
1.3
Return values
mixed

filterArgs()

Filters the widget's settings before displaying it on the frontend.

public filterArgs(array<string|int, mixed> $instanceArgs, WP_Widget $widget) : array<string|int, mixed>
Parameters
$instanceArgs : array<string|int, mixed>
$widget : WP_Widget

The widget instance.

Tags
since
1.3
Return values
array<string|int, mixed>

form()

Backend view of the widget.

public form(array<string|int, mixed> $instanceArgs) : mixed
Parameters
$instanceArgs : array<string|int, mixed>

Previously saved parameters from the database.

Tags
see
WP_Widget::form()
access

protected

since
1.3
Return values
mixed

getDescription()

public getDescription() : string
Tags
since
1.3
Return values
string

getId()

public getId() : string
Tags
since
1.3
Return values
string

getName()

public getName() : string
Tags
since
1.3
Return values
string

load()

public load() : mixed
Tags
access

protected

since
1.3
Return values
mixed

register()

public register() : mixed
Tags
access

protected

since
1.3
Return values
mixed

update()

Sanitize widget form values as they are saved.

public update(array<string|int, mixed> $newValues, array<string|int, mixed> $oldValues) : array<string|int, mixed>
Parameters
$newValues : array<string|int, mixed>

Values just sent to be saved.

$oldValues : array<string|int, mixed>

Previously saved values from database.

Tags
see
WP_Widget::update()
since
1.3
Return values
array<string|int, mixed>

Values to be saved.

widget()

Frontend view of the widget.

public widget(array<string|int, mixed> $widgetArgs, array<string|int, mixed> $instanceArgs) : mixed
Parameters
$widgetArgs : array<string|int, mixed>

Widget args.

$instanceArgs : array<string|int, mixed>

Saved parameters from the database.

Tags
see
WP_Widget::widget()
access

protected

since
1.3
Return values
mixed

addActions()

protected addActions() : mixed
Tags
since
1.3
Return values
mixed

enqueueScripts()

Enqueue widget scripts: - front-end scripts - payment gateways api handler scripts

protected enqueueScripts() : mixed
Tags
since
1.15.2
Return values
mixed

filterWidgetArgs()

protected filterWidgetArgs(array<string|int, mixed> $widgetArgs[, array<string|int, mixed> $instanceArgs = [] ]) : mixed
Parameters
$widgetArgs : array<string|int, mixed>

Widget args: before_widget, after_widget, before_title, after_title.

$instanceArgs : array<string|int, mixed> = []

Optional. Saved parameters from the database.

Tags
since
1.3
Return values
mixed

getFields()

protected getFields() : array<string|int, mixed>
Tags
since
1.3
Return values
array<string|int, mixed>

renderContent()

protected renderContent(array<string|int, mixed> $instanceArgs) : string
Parameters
$instanceArgs : array<string|int, mixed>

Saved parameters from the database.

Tags
since
1.3
Return values
string

renderForm()

protected renderForm() : string
Tags
since
1.3
Return values
string

Search results