ms_helper_member_get_admin_messages

Helper functions and data used by the Member class.

Description

apply_filters( 'ms_helper_member_get_admin_messages', (array) $array ); 

Parameters (1)

0. $array — Optional. (array) => array( self::MSG_MEMBER_ADDED => __( 'Membership added.', 'membership2' ), self::MSG_MEMBER_DELETED => __( 'Membership deleted.', 'membership2' ), self::MSG_MEMBER_UPDATED => __( 'Member updated.', 'membership2' ), self::MSG_MEMBER_ACTIVATION_TOGGLED => __( 'Member activation toggled.', 'membership2' ), self::MSG_MEMBER_BULK_UPDATED => __( 'Members bulk updated.', 'membership2' ), self::MSG_MEMBER_USER_ADDED => __( 'Users added to Membership2 member list.', 'membership2' ), self::MSG_MEMBER_NOT_ADDED => __( 'Membership not added.', 'membership2' ), self::MSG_MEMBER_NOT_DELETED => __( 'Membership not deleted.', 'membership2' ), self::MSG_MEMBER_NOT_UPDATED => __( 'Member not updated.', 'membership2' ), self::MSG_MEMBER_ACTIVATION_NOT_TOGGLED => __( 'Member activation not toggled.', 'membership2' ), self::MSG_MEMBER_BULK_NOT_UPDATED => __( 'Members bulk not updated.', 'membership2' ), )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'ms_helper_member_get_admin_messages', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ms_helper_member_get_admin_messages callback 
  2. function filter_ms_helper_member_get_admin_messages( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ms_helper_member_get_admin_messages', 'filter_ms_helper_member_get_admin_messages', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ms_helper_member_get_admin_messages', 'filter_ms_helper_member_get_admin_messages', 10, 1 ); 

Defined (1)

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

/app/helper/class-ms-helper-member.php  
  1. $messages = apply_filters(