Created
June 5, 2020 07:51
-
-
Save abdulawal39/e1619fa85c39088739bd964e8044ab00 to your computer and use it in GitHub Desktop.
Code to make PDF Viewer for WordPress viewer pages nofollow for search engines.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tnc_nofollow_pdf_viewer(){ | |
echo '<meta name="robots" content="noindex">'; | |
} | |
add_action('tnc_pvfw_head', 'tnc_nofollow_pdf_viewer'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment