The Stack Overflow podcast is back! Listen to an interview with our new CEO.
3 add ! operator
source | link

I'd probably try only enqueueing those scripts on specific pages, rather than enqueuing and then deenqueuingdequeuing them:

function wpse158453_enqueue_scripts() {
    if(!is_page('my-page')) {
        wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' );
        wp_enqueue_script( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js' );
        wp_enqueue_script( 'jquery-custom', get_template_directory_uri() . '/admin/js/custom.js' );
    }
}
add_action( 'wp_enqueue_scripts', 'wpse158453_enqueue_scripts' );

Otherwise you could try wp_dequeue_script rather than wp_deregister_script

Hope that helps.

I'd probably try only enqueueing those scripts on specific pages, rather than enqueuing and then deenqueuing them:

function wpse158453_enqueue_scripts() {
    if(is_page('my-page')) {
        wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' );
        wp_enqueue_script( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js' );
        wp_enqueue_script( 'jquery-custom', get_template_directory_uri() . '/admin/js/custom.js' );
    }
}
add_action( 'wp_enqueue_scripts', 'wpse158453_enqueue_scripts' );

Otherwise you could try wp_dequeue_script rather than wp_deregister_script

Hope that helps.

I'd probably try only enqueueing those scripts on specific pages, rather than enqueuing and then dequeuing them:

function wpse158453_enqueue_scripts() {
    if(!is_page('my-page')) {
        wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' );
        wp_enqueue_script( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js' );
        wp_enqueue_script( 'jquery-custom', get_template_directory_uri() . '/admin/js/custom.js' );
    }
}
add_action( 'wp_enqueue_scripts', 'wpse158453_enqueue_scripts' );

Otherwise you could try wp_dequeue_script rather than wp_deregister_script

Hope that helps.

2 Grammar correction
source | link

I'd probably try only enqueueing those scripts on specific pages, rather than enqueuing and then deenqueuing them:

function wpse158453_enqueue_scripts() {
    if(is_page('my-page')) {
        wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' );
        wp_enqueue_script( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js' );
        wp_enqueue_script( 'jquery-custom', get_template_directory_uri() . '/admin/js/custom.js' );
    }
}
add_action( 'wp_enqueue_scripts', 'wpse158453_enqueue_scripts' );

Otherwise you could try wp_denqueue_scriptwp_dequeue_script rather than wp_deregister_script

Hope that helps.

I'd probably try only enqueueing those scripts on specific pages, rather than enqueuing and then deenqueuing them:

function wpse158453_enqueue_scripts() {
    if(is_page('my-page')) {
        wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' );
        wp_enqueue_script( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js' );
        wp_enqueue_script( 'jquery-custom', get_template_directory_uri() . '/admin/js/custom.js' );
    }
}
add_action( 'wp_enqueue_scripts', 'wpse158453_enqueue_scripts' );

Otherwise you could try wp_denqueue_script rather than wp_deregister_script

Hope that helps.

I'd probably try only enqueueing those scripts on specific pages, rather than enqueuing and then deenqueuing them:

function wpse158453_enqueue_scripts() {
    if(is_page('my-page')) {
        wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' );
        wp_enqueue_script( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js' );
        wp_enqueue_script( 'jquery-custom', get_template_directory_uri() . '/admin/js/custom.js' );
    }
}
add_action( 'wp_enqueue_scripts', 'wpse158453_enqueue_scripts' );

Otherwise you could try wp_dequeue_script rather than wp_deregister_script

Hope that helps.

1
source | link

I'd probably try only enqueueing those scripts on specific pages, rather than enqueuing and then deenqueuing them:

function wpse158453_enqueue_scripts() {
    if(is_page('my-page')) {
        wp_enqueue_script( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js' );
        wp_enqueue_script( 'jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js' );
        wp_enqueue_script( 'jquery-custom', get_template_directory_uri() . '/admin/js/custom.js' );
    }
}
add_action( 'wp_enqueue_scripts', 'wpse158453_enqueue_scripts' );

Otherwise you could try wp_denqueue_script rather than wp_deregister_script

Hope that helps.