initialize()
mla_add_plugin_settings_link()
mla_admin_menu_action()
mla_delete_option()
mla_get_option()
mla_render_settings_page()
mla_update_option()
_reset_settings()
_save_settings()
$mla_options
MLA_SETTINGS_SLUG
Class MLA (Media Library Assistant) Settings manages the plugin option settings and provides the settings page to edit them.
package | Media Library Assistant |
---|---|
since | 0.1 |
initialize()
since | 0.1 |
---|
mla_add_plugin_settings_link(array $links, string $file) : array
since | 0.1 |
---|
array
array of links for the Plugin, e.g., "Activate"
string
Directory and name of the plugin Index file
array
Updated array of links for the Pluginmla_delete_option(string $option) : boolean
since | 0.1 |
---|
string
Name of the desired option
boolean
True if the option was deleted, otherwise falsemla_get_option(string $option) : mixed
since | 0.1 |
---|
string
Name of the desired option
mixed
Value(s) for the option or false if the option is not a defined MLA optionmla_render_settings_page() : \HTML
since | 0.1 |
---|
\HTML
markup for the settings subpagemla_update_option(string $option, mixed $newvalue) : boolean
since | 0.1 |
---|
string
Name of the desired option
mixed
New value for the desired option
boolean
True if the value was changed or false if the update failed_reset_settings(array $template_array) : array
since | 0.1 |
---|
array
HTML template(s) for the settings page
array
Message(s) reflecting the results of the operation._save_settings(array $template_array) : array
since | 0.1 |
---|
array
HTML template(s) for the settings page
array
Message(s) reflecting the results of the operation.MLA_SETTINGS_SLUG