removable_query_args filter-hookWP 4.2.0

Filters the list of query variable names to remove.

Usage

add_filter( 'removable_query_args', 'wp_kama_removable_query_args_filter' );

/**
 * Function for `removable_query_args` filter-hook.
 * 
 * @param string[] $removable_query_args An array of query variable names to remove from a URL.
 *
 * @return string[]
 */
function wp_kama_removable_query_args_filter( $removable_query_args ){

	// filter...
	return $removable_query_args;
}
$removable_query_args(string[])
An array of query variable names to remove from a URL.

Changelog

Since 4.2.0 Introduced.

Where the hook is called

wp_removable_query_args()
removable_query_args
wp-includes/functions.php 1261
return apply_filters( 'removable_query_args', $removable_query_args );

Where the hook is used in WordPress

Usage not found.