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

Packages

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

Functions

  • yourprefix_before_row_if_2
  • yourprefix_display_text_small_column
  • yourprefix_hide_if_no_cats
  • yourprefix_limit_rest_view_to_logged_in_users
  • yourprefix_options_page_message_callback
  • yourprefix_register_about_page_metabox
  • yourprefix_register_demo_metabox
  • yourprefix_register_repeatable_group_field_metabox
  • yourprefix_register_rest_api_box
  • yourprefix_register_taxonomy_metabox
  • yourprefix_register_theme_options_metabox
  • yourprefix_register_user_profile_metabox
  • yourprefix_render_row_cb
  • yourprefix_show_if_front_page

Hooks

  • Hook Reference

Function yourprefix_hide_if_no_cats

Conditionally displays a field when used as a callback in the 'show_on_cb' field parameter

Package: Demo\CMB2
License: GPL v2.0 (or later)
Located at example-functions.php

Parameters summary

CMB2_Field $field Field object.

Return value summary

boolean True if metabox should show
CMB2 Documentation API documentation generated by ApiGen