Created
February 16, 2016 09:20
-
-
Save jgarciaruiz/0bcfeca12447765523f6 to your computer and use it in GitHub Desktop.
Add custom code to specific wp page snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_code(){ | |
if ( is_page( 102 )) { | |
?> | |
<!-- TRACKING CODE OR WHATEVER --> | |
<?php | |
} | |
} | |
add_action('wp_footer', 'custom_code'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment