Class CMB2_Options_Hookup
Handles hooking CMB2 forms/metaboxes into the post/attachement/user screens and handles hooking in and saving those fields.
- CMB2_Hookup_Base
-
CMB2_Hookup
-
CMB2_Options_Hookup
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Since: 2.0.0
Link: https://cmb2.io
Located at includes/CMB2_Options_Hookup.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
#
maybe_register_message( )
If there is a message callback, let it determine how to register the message, else add a settings message if on this settings page. |
public
|
|
public
|
|
public
|
#
maybe_output_settings_notices( )
Outputs the settings notices if a) not a sub-page of 'options-general.php' (because settings_errors() already called in wp-admin/options-head.php), and b) the 'disable_settings_errors' prop is not set or truthy. |
public
array
|
#
get_tab_group_tabs( )
Gets navigation tabs array for CMB2 options pages which share the same tab_group property. |
public
|
|
public
|
|
public
mixed
|
#
network_get_override( mixed $test, mixed $default = false )
Replaces get_option with get_site_option. |
public
boolean
|
#
network_update_override( mixed $test, mixed $option_value )
Replaces update_option with update_site_option. |
public static
boolean
|
|
public
mixed
|
Methods inherited from CMB2_Hookup
add_context_metaboxes(),
add_metaboxes(),
alternate_context_postbox_classes(),
can_save(),
column_display(),
columns_sortable(),
columns_sortable_orderby(),
comment_hooks(),
context_box_title_markup_close(),
context_box_title_markup_open(),
delete_term(),
do_scripts(),
enqueue_cmb_css(),
enqueue_cmb_js(),
get_priority(),
maybe_enqueue_column_display_styles(),
maybe_init_and_hookup(),
metabox_callback(),
options_page_hooks(),
output_context_metabox(),
post_hooks(),
postbox_classes(),
register_column_headers(),
register_js(),
register_scripts(),
register_styles(),
remove_default_tax_metaboxes(),
return_column_display(),
save_comment(),
save_post(),
save_term(),
save_user(),
show_form_for_type(),
show_on(),
taxonomy_can_save(),
term_hooks(),
term_metabox(),
universal_hooks(),
user_hooks(),
user_metabox(),
user_new_metabox()
Methods inherited from CMB2_Hookup_Base
Properties summary
protected
string
|
$object_type
The object type we are performing the hookup for |
#
'options-page'
|
protected
string
|
$option_key
Options page key. |
#
''
|
Properties inherited from CMB2_Hookup
$columns,
$css_registration_done,
$js_registration_done,
$options_hookup,
$taxonomies