Advertisement
fauzanjeg

Add Code in Head Tag

Dec 27th, 2020
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. /*Add Code In Head Tag*/
  2. add_action( 'wp_head', 'add_code_in_head_tag', 1);
  3.  
  4. function add_code_in_head_tag () {
  5.     /* Insert Code Here */
  6.     ?>
  7.         <script>
  8.             alert('Page is loading...');
  9.         </script>
  10.     <?php
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement