CMB2 Documentation
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hooks
  • Download Docs
  • Github

Packages

  • CMB2
  • Demo
    • CMB2
  • None
  • Tests
    • CMB2

Classes

  • Test_CMB2
  • Test_CMB2_Ajax
  • Test_CMB2_Core
  • Test_CMB2_Field
  • Test_CMB2_JS
  • Test_CMB2_Object
  • Test_CMB2_Options
  • Test_CMB2_REST
  • Test_CMB2_Rest_Base
  • Test_CMB2_REST_Controllers
  • Test_CMB2_REST_Object
  • Test_CMB2_REST_Registered_Fields
  • Test_CMB2_Types
  • Test_CMB2_Types_Base
  • Test_CMB2_Types_Display
  • Test_CMB2_Utils

Exceptions

  • Test_CMB2_Exception

Hooks

  • Hook Reference

Class Test_CMB2_Object

Simply allows access to the mb_defaults protected property (for testing)

CMB2_Base
Extended by CMB2
Extended by Test_CMB2_Object
Package: Tests\CMB2
License: GPL-2.0+
Author: CMB2 team
Located at tests/test-cmb-core.php

Methods summary

public
# get_metabox_defaults( )

Methods inherited from CMB2

__construct(), __get(), _add_field_to_array(), add_field(), add_fields(), add_group_field(), add_hidden_field(), after_save(), box_classes(), box_types(), current_object_type(), define_field_column(), deinit_options_mb(), do_callback(), doing_options_page(), field_actions(), get_default_args(), get_field(), get_field_args(), get_field_ids(), get_sanitized_values(), group_wrap_attributes(), init_options_mb(), is_alternate_context_box(), is_box_type(), is_old_school_options_page_mb(), is_options_page_mb(), mb_object_type(), nonce(), nonce_field(), object_id(), object_type(), options_page_keys(), pre_process(), process_field(), process_fields(), prop(), remove_field(), render_field(), render_form_close(), render_form_open(), render_group(), render_group_callback(), render_group_row(), render_hidden_fields(), save_fields(), save_group(), save_group_field(), search_old_school_array(), set_prop(), show_form(), update_field_property(), was_updated()

Methods inherited from CMB2_Base

__call(), deprecated_param(), get_new_field(), get_param_callback_result(), maybe_callback(), maybe_hook(), maybe_hook_parameter(), peform_param_callback(), should_show(), unset_param_callback_cache()

Constants summary

Constants inherited from CMB2_Base

DEPRECATED_CB_PARAM, DEPRECATED_PARAM

Properties summary

Properties inherited from CMB2

$fields, $generated_nonce, $has_columns, $hidden_fields, $mb_defaults, $mb_object_type, $meta_box, $properties_name, $tax_metaboxes_to_remove, $updated

Properties inherited from CMB2_Base

$callback_results, $cmb_id, $data_to_save, $object_id, $object_type

Magic properties inherited from CMB2_Base

$args, $cmb_id, $meta_box, $object_id, $object_type, $properties

CMB2 Documentation API documentation generated by ApiGen