Property | Type | Description | |
---|---|---|---|
$load_options | Load the options. | ||
$page_defaults | Page Defaults. | ||
$seo_settings_page_hook | Name of the page hook when the menu is registered. |
Method | Description | |
---|---|---|
add_menu_link ( ) : void | Adds menu links under "settings" in the wp-admin dashboard | |
admin ( ) | Use this as the settings admin callback to create an admin page with sortable metaboxes. | |
do_metaboxes ( ) | Echo out the do_metaboxes() and wrapping markup. | |
enqueue_page_defaults ( ) | Enqueue page defaults early. | |
field_id ( string $id, boolean $echo = true ) : string | Echo constructed id attributes in form fields. | |
field_name ( string $name ) | Echo constructed name attributes in form fields. | |
field_value ( string $key ) | Echo a setting value from this form's settings field for use in form fields. | |
get_field_id ( string $id ) : string | Helper function that constructs id attributes for use in form fields. | |
get_field_name ( string $name ) : string | Helper function that constructs name attributes for use in form fields. | |
get_field_value ( string $key ) : string | Helper function that returns a setting value from this form's settings field for use in form fields. | |
get_is_conditional_checked ( string $key ) | Helper function that constructs id attributes for use in form fields. | |
is_conditional_checked ( string $key, string $setting = '', boolean $wrap = true, boolean $echo = true ) : string | Returns the HTML class wrap for warning/default Checkbox options. | |
is_default_checked ( string $key, string $setting = '', boolean $wrap = true, boolean $echo = true ) | Returns the HTML class wrap for default Checkbox options. | |
is_default_radio ( string $key, string $value, string $setting = '', boolean $wrap = true, boolean $echo = true ) : string | null | Returns the HTML class wrap for default radio options. | |
is_warning_checked ( string $key, string $setting = '', boolean $wrap = true, boolean $echo = true ) : string | Returns the HTML class wrap for warning Checkbox options. | |
load_assets ( ) | Load script and stylesheet assets via metabox_scripts() methods. | |
make_checkbox ( string $field_id = '', string $label = '', string $description = '', boolean $escape = true ) : HTML | Return a chechbox wrapper. | |
make_info ( string $description = '', string $link = '', boolean $echo = true ) : HTML | Return a wrapped question mark. | |
metabox_scripts ( ) | Includes the necessary sortable metabox scripts. | |
metaboxes ( ) | Register meta boxes on the Site SEO Settings page. | |
notices ( ) : void | Display notices on the save or reset of settings. | |
settings_init ( ) | Initialize the settings page. | |
wrap_fields ( string $input = '', boolean $echo = false ) : Wrapped | Echo or return a chechbox fields wrapper. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor. Loads parent constructor, does actions and sets up variables. |
protected __construct ( ) |
public do_metaboxes ( ) |
public enqueue_page_defaults ( ) |
public field_name ( string $name ) | ||
$name | string | Field name base |
public field_value ( string $key ) | ||
$key | string | Field key |
public get_field_id ( string $id ) : string | ||
$id | string | Field id base |
return | string | Full field id |
public get_field_name ( string $name ) : string | ||
$name | string | Field name base |
return | string | Full field name |
public get_field_value ( string $key ) : string | ||
$key | string | Field key |
return | string | Field value |
public get_is_conditional_checked ( string $key ) | ||
$key | string | The option name which returns boolean. |
public is_conditional_checked ( string $key, string $setting = '', boolean $wrap = true, boolean $echo = true ) : string | ||
$key | string | required The option name which returns boolean. |
$setting | string | optional The settings field |
$wrap | boolean | optional output class="" or just the class name. |
$echo | boolean | optional echo or return the output. |
return | string | Empty on echo or The class with an optional wrapper. |
public is_default_checked ( string $key, string $setting = '', boolean $wrap = true, boolean $echo = true ) | ||
$key | string | required The option name which returns boolean. |
$setting | string | optional The settings field |
$wrap | boolean | optional output class="" or just the class name. |
$echo | boolean | optional echo or return the output. |
public is_default_radio ( string $key, string $value, string $setting = '', boolean $wrap = true, boolean $echo = true ) : string | null | ||
$key | string | required The option name which returns boolean. |
$value | string | required The option value which returns boolean. |
$setting | string | optional The settings field |
$wrap | boolean | optional output class="" or just the class name. |
$echo | boolean | optional echo or return the output. |
return | string | null | the default selected class. |
public is_warning_checked ( string $key, string $setting = '', boolean $wrap = true, boolean $echo = true ) : string | ||
$key | string | required The option name which returns boolean. |
$setting | string | optional The settings field |
$wrap | boolean | optional output class="" or just the class name. |
$echo | boolean | optional echo or return the output. |
return | string | Empty on echo or The class with an optional wrapper. |
public load_assets ( ) |
public make_checkbox ( string $field_id = '', string $label = '', string $description = '', boolean $escape = true ) : HTML | ||
$field_id | string | The option ID. Must be within the Autodescription settings. |
$label | string | The checkbox description label. |
$description | string | Addition description to place beneath the checkbox. |
$escape | boolean | Whether to escape the label and description. |
return | HTML | checkbox output. |
public metabox_scripts ( ) |
public wrap_fields ( string $input = '', boolean $echo = false ) : Wrapped | ||
$input | string | The input to wrap. Should already be escaped. |
$echo | boolean | Whether to echo or return. |
return | Wrapped | $input. |