Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Sets noindex for the wpengine author archive pages.
* @access public
* @return void
function noindex_wpengine_author() {
if (is_author( 'wpengine' )) {
echo '<meta name="robots" content="noindex">';
add_action('wp_head', 'noindex_wpengine_author');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.