cmb_get_option

The BuddyPress Profile Tabs cmb get option function.

Description

cmb_get_option( $option_key, (string) $field_id = '' ); 

Parameters (2)

0. $option_key
The option key.
1. $field_id — Optional. (string) => ''
The field id.

Usage

  1. if ( !function_exists( 'cmb_get_option' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-profile-tabs/admin/includes/CMBF/init.php'; 
  3.  
  4. // The option key. 
  5. $option_key = null; 
  6.  
  7. // The field id. 
  8. $field_id = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = cmb_get_option($option_key, $field_id); 
  12.  

Defined (1)

The function is defined in the following location(s).

/admin/includes/CMBF/init.php  
  1. function cmb_get_option( $option_key, $field_id = '' ) { 
  2. return cmb_Meta_Box::get_option( $option_key, $field_id );