pmpro_widget_setup

The Paid Memberships Pro pmpro widget setup function.

Description

pmpro_widget_setup(); 

Usage

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

Defined (1)

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

/adminpages/dashboard.php  
  1. function pmpro_widget_setup() 
  2. $network = ''; 
  3. if ( function_exists('is_network_admin') && is_network_admin() ) 
  4. $network = '_network'; 
  5.  
  6. $options = get_option('pmpro_pmprodbwidget'); 
  7. if ( !isset($options['removedbwidget'.$network]) || !$options['removedbwidget'.$network] ) 
  8. wp_add_dashboard_widget( 'pmpro_db_widget' , 'The Latest From PaidMembershipsPro.com' , 'pmpro_db_widget');