pmpro_manage_users_columns

Add Membership Level to Users page in WordPress dashboard.

Description

pmpro_manage_users_columns( $columns ); 

Parameters (1)

0. $columns
The columns.

Usage

  1. if ( !function_exists( 'pmpro_manage_users_columns' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/init.php'; 
  3.  
  4. // The columns. 
  5. $columns = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pmpro_manage_users_columns($columns); 
  9.  

Defined (1)

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

/includes/init.php  
  1. function pmpro_manage_users_columns($columns) { 
  2. $columns['pmpro_membership_level'] = __('Membership Level', 'paid-memberships-pro' ); 
  3. return $columns;