Class CMB2_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
Direct known subclasses
Category: WordPress_Plugin
License: GPL-2.0+
Author: CMB2 team
Since: 2.0.0
Link: https://cmb2.io
Located at includes/CMB2_Hookup.php
Methods summary
public static
|
#
maybe_init_and_hookup(
A functionalized constructor, used for the hookup action callbacks. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected static
|
|
protected static
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
#
columns_sortable_orderby( object $query )
Return the query object to order by custom columns if selected |
public
|
|
public
|
#
add_context_metaboxes( )
Output the CMB2 box/fields in an alternate context (not in a standard metabox area). |
public
|
#
output_context_metabox( )
Output the CMB2 box/fields in an alternate context (not in a standard metabox area). |
public
|
#
context_box_title_markup_open( boolean $add_handle = true )
Output the opening markup for a context box. |
public
|
#
context_box_title_markup_close( boolean $add_inside_close = true )
Output the closing markup for a context box. |
public
|
|
public
|
|
public
array
|
|
protected
array
|
#
alternate_context_postbox_classes( array $classes )
Modify metabox altnernate context postbox classes. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
delete_term( integer $term_id, integer $tt_id, string $taxonomy = '' )
Delete term meta when a term is deleted. |
public
boolean
|
|
public
boolean
|
#
taxonomy_can_save( string $taxonomy )
Determine if taxonomy of term being modified is cmb2-editable. |
protected
|
#
maybe_enqueue_column_display_styles( )
Enqueues the 'cmb2-display-styles' if the conditions match (has columns, on the right page, etc). |
public static
mixed
|
|
public static
|
Methods inherited from CMB2_Hookup_Base
Properties summary
protected static
boolean
|
$js_registration_done
Only allow JS registration once |
#
false
|
protected static
boolean
|
$css_registration_done
Only allow CSS registration once |
#
false
|
protected
array
|
$taxonomies
CMB taxonomies array for term meta |
#
array()
|
protected
array
|
$columns
Custom field columns. |
#
array()
|
protected
|
$options_hookup
Array of CMB2_Options_Hookup instances if options page metabox. |
#
null
|