{"id":413489,"date":"2026-12-05T13:02:51","date_gmt":"2026-12-05T13:02:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/future-links\/"},"modified":"2026-12-05T13:02:19","modified_gmt":"2026-12-05T13:02:19","slug":"mairaj-future-links","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/mairaj-future-links\/","author":23387420,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"6.2","requires_php":"7.4","requires_plugins":null,"header_name":"Mairaj Future Links","header_author":"Muhammad Mairaj","header_description":"Links to posts that are scheduled or not published yet show as plain text, and turn into real links by themselves the moment the target post goes live.","last_updated":"2026-12-05 13:02:19","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/thisismairaj.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":65,"num_ratings":0,"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":"thisismairaj","date":"2026-12-05 13:02:19","revision":3846202}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3846272,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3846272,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3846272,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[14279,8485,6681,25064,186],"plugin_category":[55],"plugin_contributors":[297906],"plugin_business_model":[],"class_list":["post-413489","plugin","type-plugin","status-publish","hentry","plugin_tags-broken-links","plugin_tags-editorial","plugin_tags-internal-links","plugin_tags-scheduled-posts","plugin_tags-seo","plugin_category-seo-and-marketing","plugin_contributors-thisismairaj","plugin_committers-thisismairaj"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/mairaj-future-links\/assets\/icon.svg?rev=3846272","icon":"https:\/\/ps.w.org\/mairaj-future-links\/assets\/icon.svg?rev=3846272","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>When you plan a series of posts, the first one often wants to link to the next one, which is still scheduled. Without this plugin you either leave the link out and come back later to add it, or you publish a link that leads readers to a 404.<\/p>\n\n<p>Mairaj Future Links lets you add the link now. While the target post is scheduled, a draft, pending review or private, the link is shown as its plain text. When the target post is published, the link appears by itself. You never have to go back and edit the older post.<\/p>\n\n<ul>\n<li>Works with any permalink structure, pages, custom post types and <code>?p=123<\/code> links, because it uses WordPress's own URL lookup.<\/li>\n<li>Only touches links to your own site. External links, anchors and relative links are left alone.<\/li>\n<li>Does nothing to the stored post content: the link stays in the editor, and only the page readers see changes.<\/li>\n<li>No settings, no database tables, no scripts or styles added to your pages.<\/li>\n<li>When a post goes live, the plugin clears the object cache of published posts that link to it.<\/li>\n<\/ul>\n\n<p>The replaced text is wrapped in <code>&lt;span class=\"mairaj-future-link\"&gt;<\/code>, so you can style it if you want.<\/p>\n\n<h4>For developers<\/h4>\n\n<ul>\n<li><code>mairaj_future_links_statuses<\/code> filters which statuses count as \"not live yet\" (default: future, draft, pending, private).<\/li>\n<li><code>mairaj_future_links_replacement<\/code> filters the HTML that replaces a link. It receives the link text and the original URL.<\/li>\n<li><code>mairaj_future_links_skip<\/code> returns true to leave links untouched for the current request.<\/li>\n<li><code>mairaj_future_links_linking_post<\/code> fires for each published post that links to a post that just went live. A page-cache plugin can purge that page here.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from the Plugins screen, or upload the <code>mairaj-future-links<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate it. There is nothing to configure.<\/li>\n<li>In any post, link to a scheduled post by its URL as usual.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20get%20the%20url%20of%20a%20scheduled%20post%3F\"><h3>How do I get the URL of a scheduled post?<\/h3><\/dt>\n<dd><p>Copy the permalink shown in the editor's sidebar for the scheduled post. Links in the form <code>https:\/\/example.com\/?p=123<\/code> also work.<\/p><\/dd>\n<dt id=\"my%20page%20cache%20still%20shows%20the%20plain%20text%20after%20the%20target%20went%20live.\"><h3>My page cache still shows the plain text after the target went live.<\/h3><\/dt>\n<dd><p>Mairaj Future Links clears WordPress's object cache for the linking posts, but full-page caches are separate. Purge the cache, or let it expire. Cache plugins can hook into <code>mairaj_future_links_linking_post<\/code> to purge the right pages by themselves.<\/p><\/dd>\n<dt id=\"does%20it%20change%20my%20posts%20in%20the%20database%3F\"><h3>Does it change my posts in the database?<\/h3><\/dt>\n<dd><p>No. It only changes the HTML when a post is shown. Deactivate the plugin and every link shows again as you wrote it.<\/p><\/dd>\n<dt id=\"is%20a%20link%20to%20a%20draft%20post%20hidden%20too%3F\"><h3>Is a link to a draft post hidden too?<\/h3><\/dt>\n<dd><p>Yes, if the draft already has a permalink (WordPress gives drafts one once you set or edit their slug). Use the <code>mairaj_future_links_statuses<\/code> filter to change which statuses count.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Link to posts you have scheduled but not published yet. Readers see plain text until the target goes live, then a real link.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/413489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=413489"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thisismairaj"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=413489"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=413489"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=413489"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=413489"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=413489"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=413489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}