Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class myExtension_Admin{
- function __ construct() {
- add_action( 'admin_enqueue_scripts', array( &$this, 'addRessources' ) );
- }
- function addRessources($hook) {
- if( $hook == 'macondition de page de hook' ) {
- wp_enqueue_script('mon-script', ME_URL.'/ressources/js/mon-fichier-js.js', array( ), '1.0', true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement