wpmu_admin_redirect_add_updated_param

Adds an 'updated=true' argument to a URL.

Description

(string) wpmu_admin_redirect_add_updated_param( (string) $url = '' ); 

Returns (string)

Parameters (1)

0. $url — Optional. (string) => ''
Redirect URL. Default empty.

Usage

  1. if ( !function_exists( 'wpmu_admin_redirect_add_updated_param' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-deprecated.php'; 
  3.  
  4. // Optional. Redirect URL. Default empty. 
  5. $url = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wpmu_admin_redirect_add_updated_param($url); 
  9.  

Defined (1)

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

/wp-includes/ms-deprecated.php  
  1. function wpmu_admin_redirect_add_updated_param( $url = '' ) { 
  2. _deprecated_function( __FUNCTION__, '3.3.0' ); 
  3.  
  4. if ( strpos( $url, 'updated=true' ) === false ) { 
  5. if ( strpos( $url, '?' ) === false ) 
  6. return $url . '?updated=true'; 
  7. else 
  8. return $url . '&updated=true'; 
  9. return $url;