pmprobb_admin_init

Admin init.

Description

pmprobb_admin_init(); 

Usage

  1. if ( !function_exists( 'pmprobb_admin_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro-bbpress-add-on/pmpro-bbpress.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pmprobb_admin_init(); 
  7.  

Defined (1)

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

/pmpro-bbpress.php  
  1. function pmprobb_admin_init() { 
  2. //if on the edit level page, enqueue color picker 
  3. if(!empty($_REQUEST['page']) && $_REQUEST['page'] == 'pmpro-membershiplevels' && isset($_REQUEST['edit'])) { 
  4. wp_enqueue_script( 'wp-color-picker' ); 
  5. wp_enqueue_style( 'wp-color-picker' ); 
  6. }