Semper_Fi_Module
Description Description
Source Source
File: includes/class-ld-semper-fi-module.php
Methods Methods
- __call — Handles calls to display_settings_page_{$location}, does error checking.
- __construct — Constructor for the Semper_Fi_Module class
- add_menu — Add submenu for module, call page hooks, set up metaboxes.
- add_page_hooks — Add basic hooks when on the module's page.
- csv_to_array — Helper function to convert csv in key/value pair format to an associative array.
- default_options — Generates just the default option names and values
- delete_class_option — Delete options for module, stored individually or together.
- delete_option — Adds support for deleting network options.
- display_metabox — Display metaboxes with display_options()
- display_options — Display options for settings pages and metaboxes, allows for filtering settings, custom display options.
- display_settings_page — Update / reset settings, printing options, sanitizing, posting back
- display_tabs — Displays tabs for tabbed locations on a settings page.
- do_multi_input — Outputs radio buttons, checkboxes, selects, multiselects, handles groups.
- enqueue_scripts — Load scripts for module, can pass data to module script.
- enqueue_styles — Load styles for module.
- filter_pointers — Filter out admin pointers that have already been clicked.
- filter_return_metaboxes — Collect metabox data together for tabbed metaboxes.
- get_class_option — Get options for module, stored individually or together.
- get_current_options — Gets the current options stored for a given location.
- get_option — Adds support for getting network options.
- get_option_html — Outputs a setting item for settings pages and metaboxes.
- get_option_name — Get the option name with prefix.
- get_option_row — Format a row for an option on a settings page.
- get_prefix — Get the prefix used for a given location.
- handle_settings_updates — handle option resetting and updating
- is_admin — Crude approximization of whether current user is an admin
- option_isset — Convenience function to see if an option is set.
- output_error — Print a basic error message.
- reset_options — Handle resetting options to defaults.
- sanitize_options — Sanitize options
- save_post_data — Update postmeta for metabox.
- setting_options — Sets up initial settings
- settings_export — Handles exporting settings data for a module.
- settings_page_init — Override this to run code at the beginning of the settings page.
- update_class_option — Update options for module, stored individually or together.
- update_option — Adds support for updating network options.
- update_options — Updates the options array in the module; loads saved settings with get_option() or uses defaults