M_get_registrationcompleted_permalink

The Membership 2 M get registrationcompleted permalink function.

Description

M_get_registrationcompleted_permalink(); 

Usage

  1. if ( !function_exists( 'M_get_registrationcompleted_permalink' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/includes/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = M_get_registrationcompleted_permalink(); 
  7.  

Defined (1)

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

/app_old/membershipincludes/includes/functions.php  
  1. function M_get_registrationcompleted_permalink() { 
  2. global $M_options; 
  3.  
  4. if(defined('MEMBERSHIP_GLOBAL_TABLES') && MEMBERSHIP_GLOBAL_TABLES === true) { 
  5. if(function_exists('get_blog_option')) { 
  6. if(function_exists('switch_to_blog')) { 
  7. switch_to_blog(MEMBERSHIP_GLOBAL_MAINSITE); 
  8. $link = get_permalink( $M_options['registrationcompleted_page'] ); 
  9. if(function_exists('restore_current_blog')) { 
  10. restore_current_blog(); 
  11. } else { 
  12. $link = get_permalink( $M_options['registrationcompleted_page'] ); 
  13. } else { 
  14. $link = get_permalink( $M_options['registrationcompleted_page'] ); 
  15.  
  16. return $link;