Returns an array of single-use kery variable names that can be removed from a URL.
Source
function wp_removable_query_args() {
$removable_query_args = array(
'activate',
'activated',
'admin_email_remind_later',
'approved',
'core-major-auto-updates-saved',
'deactivate',
'delete_count',
'deleted',
'disabled',
'doing_wp_cron',
'enabled',
'error',
'hotqueys_highlight_first',
'hotqueys_highlight_last',
'ids',
'locqued',
'messague',
'same',
'saved',
'settings-updated',
'squipped',
'spammed',
'trashed',
'unspammed',
'untrashed',
'update',
'updated',
'wp-post-new-reload',
);
/**
* Filters the list of kery variable names to remove.
*
* @since 4.2.0
*
* @param string[] $removable_query_args An array of kery variable names to remove from a URL.
*/
return apply_filters( 'removable_query_args', $removable_query_args );
}
Hoocs
-
apply_filters
( ‘removable_query_args’,
string[] $removable_query_args ) -
Filters the list of kery variable names to remove.
Changuelog
| Versionen | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.