Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * add script to head with wrapping php
- */
- function addtohead_cf() {
- ?>
- <script></script>
- <?php
- }
- add_action('wp_head', 'addtohead_cf');
- /**
- * add script to head using echo
- */
- function addtohead_cf() {
- echo "<script></script>";
- }
- add_action( 'wp_head', 'addtohead_cf' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement