Package Demo\CMB2
Functions summary
yourprefix_before_row_if_2 | Conditionally displays a message if the $post_id is 2 |
yourprefix_display_text_small_column | Manually render a field column display. |
yourprefix_hide_if_no_cats | Conditionally displays a field when used as a callback in the 'show_on_cb' field parameter |
yourprefix_limit_rest_view_to_logged_in_users | Only show this box in the CMB2 REST API if the user is logged in. |
yourprefix_options_page_message_callback | Callback to define the optionss-saved message. |
yourprefix_register_about_page_metabox | Hook in and add a metabox that only appears on the 'About' page |
yourprefix_register_demo_metabox | Hook in and add a demo metabox. Can only happen on the 'cmb2_admin_init' or 'cmb2_init' hook. |
yourprefix_register_repeatable_group_field_metabox | Hook in and add a metabox to demonstrate repeatable grouped fields |
yourprefix_register_rest_api_box | Hook in and add a box to be available in the CMB2 REST API. Can only happen on the 'cmb2_init' hook. More info: https://github.com/CMB2/CMB2/wiki/REST-API |
yourprefix_register_taxonomy_metabox | Hook in and add a metabox to add fields to taxonomy terms |
yourprefix_register_theme_options_metabox | Hook in and register a metabox to handle a theme options page and adds a menu item. |
yourprefix_register_user_profile_metabox | Hook in and add a metabox to add fields to the user profile pages |
yourprefix_render_row_cb | Manually render a field. |
yourprefix_show_if_front_page | Conditionally displays a metabox when used as a callback in the 'show_on_cb' cmb2_box parameter |