跳到内容

Tmeister Random Redirect Disable

v1.0.0

tmeister · 2026年11月19日 上架

Turns off the /random/ URL (introduced in WordPress 7.2) that sends visitors to a random post or page.

正在使用
10 以下
评分
暂无
累计下载
109
最近更新
2026年11月20日
需要 WordPress 7.2+已测试到 7.2PHP 7.4+

贡献者

WordPress adds a /random/ URL that redirects visitors to a random piece of content on your site. If you don’t want that, Tmeister Random Redirect Disable turns it off.

There are no settings. Activate the plugin and the redirect is disabled. Deactivate it and the core behavior comes back.

The plugin adds a single filter:

add_filter( 'wp_enable_random_content_redirect', '__return_false' );

It does not store data, add database tables, or contact external services.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums