wp_removable_query_args

The timeline below displays how wordpress function wp_removable_query_args has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.7

/**
 * Returns an array of single-use query variable names that can be removed from a URL.
 *
 * @since 4.4.0
 *
 * @return string[] An array of query variable names to remove from the URL.
 */
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', 'hotkeys_highlight_first', 'hotkeys_highlight_last', 'ids', 'locked', 'message', 'same', 'saved', 'settings-updated', 'skipped', 'spammed', 'trashed', 'unspammed', 'untrashed', 'update', 'updated', 'wp-post-new-reload');
    /**
     * Filters the list of query variable names to remove.
     *
     * @since 4.2.0
     *
     * @param string[] $removable_query_args An array of query variable names to remove from a URL.
     */
    return apply_filters('removable_query_args', $removable_query_args);
}

WordPress Version: 5.6

/**
 * Returns an array of single-use query variable names that can be removed from a URL.
 *
 * @since 4.4.0
 *
 * @return string[] An array of parameters to remove from the URL.
 */
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', 'hotkeys_highlight_first', 'hotkeys_highlight_last', 'ids', 'locked', 'message', 'same', 'saved', 'settings-updated', 'skipped', 'spammed', 'trashed', 'unspammed', 'untrashed', 'update', 'updated', 'wp-post-new-reload');
    /**
     * Filters the list of query variables to remove.
     *
     * @since 4.2.0
     *
     * @param string[] $removable_query_args An array of query variables to remove from a URL.
     */
    return apply_filters('removable_query_args', $removable_query_args);
}

WordPress Version: 5.5

/**
 * Returns an array of single-use query variable names that can be removed from a URL.
 *
 * @since 4.4.0
 *
 * @return string[] An array of parameters to remove from the URL.
 */
function wp_removable_query_args()
{
    $removable_query_args = array('activate', 'activated', 'admin_email_remind_later', 'approved', 'deactivate', 'delete_count', 'deleted', 'disabled', 'doing_wp_cron', 'enabled', 'error', 'hotkeys_highlight_first', 'hotkeys_highlight_last', 'locked', 'message', 'same', 'saved', 'settings-updated', 'skipped', 'spammed', 'trashed', 'unspammed', 'untrashed', 'update', 'updated', 'wp-post-new-reload');
    /**
     * Filters the list of query variables to remove.
     *
     * @since 4.2.0
     *
     * @param string[] $removable_query_args An array of query variables to remove from a URL.
     */
    return apply_filters('removable_query_args', $removable_query_args);
}

WordPress Version: 5.4

/**
 * Returns an array of single-use query variable names that can be removed from a URL.
 *
 * @since 4.4.0
 *
 * @return string[] An array of parameters to remove from the URL.
 */
function wp_removable_query_args()
{
    $removable_query_args = array('activate', 'activated', 'approved', 'deactivate', 'deleted', 'disabled', 'doing_wp_cron', 'enabled', 'error', 'hotkeys_highlight_first', 'hotkeys_highlight_last', 'locked', 'message', 'same', 'saved', 'settings-updated', 'skipped', 'spammed', 'trashed', 'unspammed', 'untrashed', 'update', 'updated', 'wp-post-new-reload');
    /**
     * Filters the list of query variables to remove.
     *
     * @since 4.2.0
     *
     * @param string[] $removable_query_args An array of query variables to remove from a URL.
     */
    return apply_filters('removable_query_args', $removable_query_args);
}

WordPress Version: 4.6

/**
 * Returns an array of single-use query variable names that can be removed from a URL.
 *
 * @since 4.4.0
 *
 * @return array An array of parameters to remove from the URL.
 */
function wp_removable_query_args()
{
    $removable_query_args = array('activate', 'activated', 'approved', 'deactivate', 'deleted', 'disabled', 'enabled', 'error', 'hotkeys_highlight_first', 'hotkeys_highlight_last', 'locked', 'message', 'same', 'saved', 'settings-updated', 'skipped', 'spammed', 'trashed', 'unspammed', 'untrashed', 'update', 'updated', 'wp-post-new-reload');
    /**
     * Filters the list of query variables to remove.
     *
     * @since 4.2.0
     *
     * @param array $removable_query_args An array of query variables to remove from a URL.
     */
    return apply_filters('removable_query_args', $removable_query_args);
}

WordPress Version: 4.4

/**
 * Returns an array of single-use query variable names that can be removed from a URL.
 *
 * @since 4.4.0
 *
 * @return array An array of parameters to remove from the URL.
 */
function wp_removable_query_args()
{
    $removable_query_args = array('activate', 'activated', 'approved', 'deactivate', 'deleted', 'disabled', 'enabled', 'error', 'locked', 'message', 'same', 'saved', 'settings-updated', 'skipped', 'spammed', 'trashed', 'unspammed', 'untrashed', 'update', 'updated', 'wp-post-new-reload');
    /**
     * Filter the list of query variables to remove.
     *
     * @since 4.2.0
     *
     * @param array $removable_query_args An array of query variables to remove from a URL.
     */
    return apply_filters('removable_query_args', $removable_query_args);
}