drkskwlkr

Insert script in WP head

Sep 27th, 2021 (edited)
1,427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2. add_action('wp_head', function() {?>
  3. <script src="https://kit.fontawesome.com/<?php esc_html( get_field( 'fontawesome_kit_code', 'options' ) ); ?>.js" crossorigin="anonymous"></script>
  4. <?php
  5. });
Add Comment
Please, Sign In to add comment