Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress wp_head

function hook_javascript() {
    ?>
        <script>
            alert('Page is loading...');
        </script>
    <?php
}
add_action('wp_head', 'hook_javascript');
 
PREVIOUS NEXT
Tagged: #wordpress
ADD COMMENT
Topic
Name
2+6 =