De-register vibe course module plugin scripts and style

Please add this code to deregister the course.js script from a specific page in your wplms-customizer.php file in wplms customizer plugin :

add_action('wp_footer','custom_function1212',12);
function custom_function1212(){
if(is_page(2))
        wp_deregister_script( 'bp-course-js' );
}

Where “2” marked in red is the page id of the specific page.

 

Please add this code to deregister the course.js script from a specific Blog in your wplms-customizer.php file in wplms customizer plugin or in your other theme’s child theme functions.php :

 

add_action('wp_footer','custom_function1212',12);
function custom_function1212(){
if(get_current_blog_id()==2)
        wp_deregister_script( 'bp-course-js' ); 
       wp_deregister_style( 'bp-course-css' );
}

 
Where “2” marked in red is the blog id of the specific blog.

 

Was this article helpful?

Related Articles

Leave A Comment?