Advertisement
fauzanjeg

Add Meta Header in Head Tag for Single Post

Jan 13th, 2021
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /* Add Meta Header in Head Tag for Single Post */
  2. function add_meta_header() {
  3.     if ( is_single() ) {
  4.         ?>
  5.         <meta content='Germany' property='og:tag' />
  6.         <meta content='Munich' property='og:tag' />
  7.         <?php
  8.     }
  9. }
  10.  
  11. add_action( 'wp_head', 'add_meta_header' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement