wpseek.com
A WordPress-centric search engine for devs and theme authors
wpmu_admin_redirect_add_updated_param is deprecated since version 3.3.0!
Alternative: add_query_arg()
Alternative: add_query_arg()
wpmu_admin_redirect_add_updated_param › WordPress Function
Since
Deprecated3.3.0
› wpmu_admin_redirect_add_updated_param ( $url = '' )
Parameters: |
|
See: | |
Returns: |
|
Defined at: |
|
Codex: | |
Change Log: |
|
Adds an 'updated=true' argument to a URL.
Source
function wpmu_admin_redirect_add_updated_param( $url = '' ) { _deprecated_function( __FUNCTION__, '3.3.0', 'add_query_arg()' ); if ( ! str_contains( $url, 'updated=true' ) ) { if ( ! str_contains( $url, '?' ) ) return $url . '?updated=true'; else return $url . '&updated=true'; } return $url; }