WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm having some trouble adding jquery-week-calendar to WordPress' admin interface using add_menu_page and other API methods. What I found out is that the default jquery-ui and other JavaScript references are interfering in the rendered calendar behavior.

How can I remove these extra scripts from the admin interface? load-scripts.php is called a couple of times, and I can't seem to deregister the scripts that the admin components like tinyMCE and others are calling.

share|improve this question
up vote 1 down vote accepted

According to the load-scripts.php file, scripts that are not enqueued will not be loaded, so I don't need to worry about it when using hooks like admin_enqueue_scripts and the wp_deregister_script function.

foreach( $load as $handle ) {
    if ( !array_key_exists($handle, $wp_scripts->registered) )

However, my problem with jQuery week calendar was with the wp-jquery-ui-dialog style. So, to solve this problem I just had to:

$scripts = array('jquery-ui-core', 'jquery-ui-widget',
    'jquery-ui-mouse', 'jquery-ui-resizable', 'jquery-ui-draggable',
    'jquery-ui-button', 'jquery-ui-position', 'jquery-ui-dialog');
foreach ($scripts as $s)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.