Property | Type | Description | |
---|---|---|---|
$name | string | Internal name. | |
$settings | array | Settings from database. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
add_plugin_action_links ( array $links, string $file ) | Add extra links for RBE on the WP Admin plugins page | |
admin_init ( ) | Setup our items when a user is in the WP backend. | |
footer ( ) | JS hooked to footer of our settings page | |
get_plugin_basename ( ) : string | Gets RBE's plugin basename. | |
head ( ) | Inline CSS hooked to head of our settings page | |
load ( ) | Output the admin page. | |
setup_admin ( ) | Setup our admin settings page and hooks | |
validate ( array $input ) : array | Validate and sanitize our options before saving to the DB. |
Method | Description | |
---|---|---|
display_errors ( ) | Alternative approach to WP Settings API's add_settings_error(). | |
field ( string $name, boolean $id = false, boolean $echo = true ) : mixed | Returns or outputs a field name / ID in the admin area. | |
get_inbound_providers ( ) : array | Get an array of available inbound providers. | |
get_option ( string $name, boolean $echo = true ) : mixed | Returns or outputs an admin setting in the admin area. | |
github_updater ( ) | Checks a JSON file to see if our Github repo should be updated. | |
render_field ( array $args = '' ) | Renders the output of a form field in the admin area. | |
schedule ( ) | Outputs next scheduled run of the (pseudo) cron. | |
webhost_warnings ( ) | Adds webhost warnings to the admin page. |
public add_plugin_action_links ( array $links, string $file ) | ||
$links | array | Plugin action links |
$file | string | A plugin's loader base filename |
protected display_errors ( ) |
protected get_inbound_providers ( ) : array | ||
return | array | Key/value pairs (provider internal name => provider display name) |
public get_plugin_basename ( ) : string | ||
return | string |
protected github_updater ( ) |
protected render_field ( array $args = '' ) | ||
$args | array | Arguments for the field |
protected webhost_warnings ( ) |