[wp-trac] [WordPress Trac] #38134: Allow wp_no_robots to be hooked
WordPress Trac
noreply at wordpress.org
Thu Apr 23 05:41:54 UTC 2020
#38134: Allow wp_no_robots to be hooked
-------------------------+-------------------------
Reporter: tomdxw | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.6.1
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
-------------------------+-------------------------
Changes (by peterwilsoncc):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
This was discussed in a triage session today, it may have changed since
this ticket was opened but it is no possible to unhook the `wp_no_robots`
function.
The following code will remove it and similar code to that above can be
used to hook on to wp_head.
{{{#!php
<?php
remove_action( 'wp_head', 'wp_no_robots' );
}}}
It's also worth noting that for private blogs, for example those with
search engine indexing disabled, the default meta tag content was changed
to `nofollow`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38134#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list