SHOW:
|
|
- or go back to the newest paste.
1 | Php | |
2 | ----- | |
3 | <?php | |
4 | /* | |
5 | Plugin Name: User Team Details | |
6 | Plugin URI: | |
7 | Description: User entered team details. | |
8 | Version: 0.1 | |
9 | */ | |
10 | add_action('wp_enqueue_scripts', 'user_team_scripts'); | |
11 | add_action('admin_enqueue_scripts', 'user_team_scripts'); | |
12 | - | } |
12 | + | |
13 | wp_register_script('user_teams', plugins_url('js/user_teams.js', __FILE__),array("jquery")); | |
14 | } | |
15 | ||
16 | ||
17 | user_team.js | |
18 | --------------- | |
19 | jQuery(function($){ | |
20 | /* Start */ | |
21 | ||
22 | console.log('hello'); | |
23 | ||
24 | /* End */ | |
25 | }); |