SaveSettings
extends AbstractChecklistItem
in package
Save settings for the first time.
Table of Contents
Constants
- IDENTIFIER = 'save-settings'
Methods
- getDescription() : string
- Get checklist description. Can be empty.
- getLink() : string
- Get link so the checklist item can be resolved there. Can be empty.
- getLinkTarget() : string
- Get link target. Can be empty or "_blank", .
- getLinkText() : string
- Get link text. Can be empty.
- getPluginConstantPrefix() : string
- Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
- getTitle() : string
- Get checklist title.
- isChecked() : bool
- Is this checklist item checked?
- isVisible() : bool
- Should this be visible as checklist item?
- needsPro() : bool
- Does this checklist item need PRO version of RCB?
- settings_updated() : mixed
- Settings got saved, let's check the checklist item.
- toggle() : bool
- Set state of checklist item.
- getFromOption() : mixed
- Get the state from `wp_options`.
- persistStateToOption() : mixed
- Persist the state from `wp_options`.
Constants
IDENTIFIER
public
mixed
IDENTIFIER
= 'save-settings'
Methods
getDescription()
Get checklist description. Can be empty.
public
getDescription() : string
Return values
stringgetLink()
Get link so the checklist item can be resolved there. Can be empty.
public
getLink() : string
Return values
stringgetLinkTarget()
Get link target. Can be empty or "_blank", .
public
getLinkTarget() : string
..
Return values
stringgetLinkText()
Get link text. Can be empty.
public
getLinkText() : string
Return values
stringgetPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringgetTitle()
Get checklist title.
public
getTitle() : string
Return values
stringisChecked()
Is this checklist item checked?
public
isChecked() : bool
Return values
boolisVisible()
Should this be visible as checklist item?
public
isVisible() : bool
Return values
boolneedsPro()
Does this checklist item need PRO version of RCB?
public
needsPro() : bool
Return values
boolsettings_updated()
Settings got saved, let's check the checklist item.
public
static settings_updated(WP_REST_Response $response) : mixed
Parameters
- $response : WP_REST_Response
toggle()
Set state of checklist item.
public
toggle(mixed $state) : bool
Parameters
- $state : mixed
Return values
boolgetFromOption()
Get the state from `wp_options`.
protected
getFromOption(string $id) : mixed
Parameters
- $id : string
persistStateToOption()
Persist the state from `wp_options`.
protected
persistStateToOption(string $id, bool $state) : mixed
Parameters
- $id : string
- $state : bool