pods_var_update

Create a new URL off of the current one, with updated parameters.

Description

pods_var_update( (constant) $array = null, (constant) $allowed = null, (constant) $excluded = null, (null) $url = null ); 

Parameters (4)

0. $array — Optional. (constant) => null
Parameters to be set (empty will remove it)
1. $allowed — Optional. (constant) => null
Parameters to keep (if empty, all are kept)
2. $excluded — Optional. (constant) => null
Parameters to always remove
3. $url — Optional. (null) => null
URL to base update off of

Usage

  1. if ( !function_exists( 'pods_var_update' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'pods-custom-content-types-and-fields/includes/data.php'; 
  3.  
  4. // Parameters to be set (empty will remove it) 
  5. $array = null; 
  6.  
  7. // Parameters to keep (if empty, all are kept) 
  8. $allowed = null; 
  9.  
  10. // Parameters to always remove 
  11. $excluded = null; 
  12.  
  13. // URL to base update off of 
  14. $url = null; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = pods_var_update($array, $allowed, $excluded, $url); 
  18.  

Defined (1)

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

/includes/data.php  
  1. function pods_var_update( $array = null, $allowed = null, $excluded = null, $url = null ) { 
  2.  
  3. return pods_query_arg( $array, $allowed, $excluded, $url ); 
  4.