Last active
August 29, 2015 14:00
-
-
Save trepmal/11011808 to your computer and use it in GitHub Desktop.
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
<?php | |
// script on registration page only | |
// limited testing | |
// can go in path/to/wp/wp-content/mu-plugins/ | |
add_action( 'login_enqueue_scripts', function() { | |
if ( isset( $_REQUEST['action'] ) && 'register' == $_REQUEST['action'] ) { | |
// script here | |
// echo '<script...></script>'; | |
// or | |
// wp_enqueue_script( 'script-handle', 'script-url.js' ); | |
// see http://codex.wordpress.org/Function_Reference/wp_enqueue_script for params | |
} | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or without the closure...