ms_url_after_login

The WordPress Core ms url after login hook.

Description

apply_filters( 'ms_url_after_login', (unknown) $post_redirect_to, (unknown) $enforce ); 

Parameters (2)

0. $post_redirect_to (unknown)
The post redirect to.
1. $enforce (unknown)
The enforce.

Usage

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

Defined (3)

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

/app/controller/class-ms-controller-dialog.php  
  1. $resp['redirect'] = apply_filters( 
/app/model/class-ms-model-pages.php  
  1. $url = apply_filters( 
/membership.php  
  1. $resp['redirect'] = apply_filters(