Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Disable pinning on the print template.
- */
- add_action( 'template_redirect', function() {
- if ( function_exists( 'tasty_recipes_is_print' ) && tasty_recipes_is_print() ) {
- add_action( 'wp_head', function() {
- echo '<meta name="pinterest" content="nopin" description="Sorry, but please don\'t pin from the print page." />' . PHP_EOL;
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement