Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_head', 'add_custom_script_to_head' );
- function add_custom_script_to_head(){
- $user_ID = get_current_user_id();
- ?>
- //Javascript
- var user_ID = '<?php echo $user_ID ?>';
- <?php
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement