caldera_forms_fix_license_manger_link

Redirect old license page link to new license page link.

Description

caldera_forms_fix_license_manger_link(); 

Usage

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

Defined (1)

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

/includes/functions.php  
  1. function caldera_forms_fix_license_manger_link() { 
  2. if( ! is_admin() ) { 
  3. return; 
  4. global $pagenow; 
  5. if( 'options-general.php' == $pagenow && isset( $_GET[ 'page' ] ) && 'calderawp_license_manager' == $_GET[ 'page' ] ) { 
  6. cf_redirect( add_query_arg( 'page', 'calderawp_license_manager', self_admin_url( 'wp-admin/admin.php') ) );