Title: Scripts in admin-panel
Last modified: December 22, 2018

---

# Scripts in admin-panel

 *  [Chirukin Bogdan](https://wordpress.org/support/users/cheater111/)
 * (@cheater111)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/scripts-in-admin-panel/)
 * Hello everyone, I am writing a plugin that requires connecting a script, for 
   which I am writing the following code
    ` function oc_script_tax( $hook ) {
 *  if ( ‘edit-tags.php’ === $hook ) {
    wp_enqueue_scripts( ‘oc-taxonomy’, plugin_dir_path(
   __FILE__) .’/js/taxonomy.js’, array(), ‘1.0’, true ); } } add_action( ‘admin_enqueue_scripts’,‘
   oc_script_tax’ );` but instead of the script all styles and scripts of the current
   theme are connected without my script. where is the mistake? thank you in advance
    -  This topic was modified 7 years, 5 months ago by [Chirukin Bogdan](https://wordpress.org/support/users/cheater111/).

Viewing 1 replies (of 1 total)

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/scripts-in-admin-panel/#post-11020026)
 * You have an extra s on the function name. See [the difference here](https://developer.wordpress.org/?s=wp_enqueue_script)

Viewing 1 replies (of 1 total)

The topic ‘Scripts in admin-panel’ is closed to new replies.

## Tags

 * [admin_enqueue_scripts](https://wordpress.org/support/topic-tag/admin_enqueue_scripts/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/scripts-in-admin-panel/#post-11020026)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
