{"id":402409,"date":"2026-11-12T09:47:21","date_gmt":"2026-11-12T09:47:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/disable-random-content\/"},"modified":"2026-11-14T11:27:08","modified_gmt":"2026-11-14T11:27:08","slug":"disable-random-content","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/disable-random-content\/","author":15627098,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.0","stable_tag":"1.1.0","tested":"7.1.4","requires":"7.2","requires_php":"7.4","requires_plugins":null,"header_name":"Disable Random Content","header_author":"KAGG Design, Ernest Behinov","header_description":"Disables WordPress 7.2 random content redirects.","last_updated":"2026-11-14 11:27:08","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/kagg-design\/disable-random-content","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":0,"downloads":119,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"kaggdesign","date":"2026-11-12 09:46:51","revision":3797970},"1.1.0":{"tag":"1.1.0","author":"kaggdesign","date":"2026-11-14 11:27:08","revision":3801764}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3801764,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3801764,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3801764,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3801764,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3801764,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[939,25779,726],"plugin_category":[59],"plugin_contributors":[260449,145445],"plugin_business_model":[],"class_list":["post-402409","plugin","type-plugin","status-publish","hentry","plugin_tags-permalinks","plugin_tags-random-content","plugin_tags-redirects","plugin_category-utilities-and-tools","plugin_contributors-ernest35","plugin_contributors-kaggdesign","plugin_committers-kaggdesign"],"banners":{"banner":"https:\/\/ps.w.org\/disable-random-content\/assets\/banner-772x250.png?rev=3801764","banner_2x":"https:\/\/ps.w.org\/disable-random-content\/assets\/banner-1544x500.png?rev=3801764","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/disable-random-content\/assets\/icon.svg?rev=3801764","icon":"https:\/\/ps.w.org\/disable-random-content\/assets\/icon.svg?rev=3801764","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WordPress 7.2 adds random content redirects for URLs such as <code>\/random\/<\/code> and for archive requests containing <code>?random=1<\/code>. This plugin turns off that feature through the <code>wp_enable_random_content_redirect<\/code> filter.<\/p>\n\n<p>The plugin refreshes rewrite rules when activated or deactivated. In a multisite network, it clears each site's saved rules so WordPress can regenerate them with that site's own settings on the next request.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin in <code>\/wp-content\/plugins\/disable-random-content\/<\/code>.<\/li>\n<li>Activate it for one site or across the network.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20disable%20all%20random%20ordering%20in%20wordpress%3F\"><h3>Does this disable all random ordering in WordPress?<\/h3><\/dt>\n<dd><p>No. It disables the random content redirect feature. Queries that explicitly use random ordering for other purposes are unaffected.<\/p><\/dd>\n<dt id=\"what%20happens%20to%20existing%20%60%2Frandom%2F%60%20urls%3F\"><h3>What happens to existing `\/random\/` URLs?<\/h3><\/dt>\n<dd><p>The plugin removes the special rewrite rules. Those URLs then follow the site's ordinary routing rules.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Keep random content redirects disabled after deactivation and reactivation in the same request.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Disable random content redirects and their rewrite rules.<\/li>\n<li>Refresh site and network rewrite rules when activation status changes.<\/li>\n<\/ul>","raw_excerpt":"Disable WordPress random content redirects and their permalink routes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/402409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=402409"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/kaggdesign"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=402409"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=402409"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=402409"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=402409"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=402409"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=402409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}