ms_controller_shortcode_membership_register_user_atts

The WordPress Core ms controller shortcode membership register user atts hook.

Description

apply_filters( 'ms_controller_shortcode_membership_register_user_atts', (bool) $shortcode_atts ); 

Parameters (1)

0. $shortcode_atts — Optional. (bool) => shortcode_atts( array( 'first_name' => substr( trim( $_REQUEST['first_name'] ), 0, 50 ), 'last_name' => substr( trim( $_REQUEST['last_name'] ), 0, 50 ), 'username' => substr( trim( $_REQUEST['username'] ), 0, 50 ), 'email' => substr( trim( $_REQUEST['email'] ), 0, 50 ), 'membership_id' => trim( $_REQUEST['membership_id'] ), 'label_first_name' => __( 'First Name', 'membership2' ), 'label_last_name' => __( 'Last Name', 'membership2' ), 'label_username' => __( 'Choose a Username', 'membership2' ), 'label_email' => __( 'Email Address', 'membership2' ), 'label_password' => __( 'Password', 'membership2' ), 'label_password2' => __( 'Confirm Password', 'membership2' ), 'label_register' => __( 'Register My Account', 'membership2' ), 'hint_first_name' => '', 'hint_last_name' => '', 'hint_username' => '', 'hint_email' => '', 'hint_password' => '', 'hint_password2' => '', 'title' => __( 'Create an Account', 'membership2' ), 'loginlink' => true, ), $atts )
The shortcode atts.

Usage

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

Defined (1)

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

/app/controller/class-ms-controller-shortcode.php  
  1. $data = apply_filters(