wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_removable_query_args › WordPress Function
Since4.4.0
已弃用n/a
› wp_removable_query_args ( 没有参数 )
返回: |
|
定义在: |
|
文档: |
Returns an array of single-use query variable names that can be removed from a URL.
Related Functions: remove_query_arg, wp_reset_query, wp_remote_request, add_query_arg, wp_recovery_mode_nag
源码
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 ); }