Last active
December 1, 2020 19:13
-
-
Save jesseeproductions/9dfea57be5bc3dd3b87bca2c192b90f5 to your computer and use it in GitHub Desktop.
Revisions
-
jesseeproductions revised this gist
Dec 1, 2020 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,4 +10,13 @@ function tribe_wo_server_deregister_files() { wp_dequeue_script( 'wo_admin_select2' ); } add_action( 'admin_print_scripts-post-new.php', 'tribe_wo_server_deregister_files' ); add_action( 'admin_print_scripts-post.php', 'tribe_wo_server_deregister_files' ); /** * Disable WP-Oauth Select 2 Script on Tribe Event Imports * */ function tribe_imports_wo_server_deregister_files() { wp_dequeue_script( 'wo_admin_select2' ); } add_action( 'admin_print_scripts-tribe_events_page_aggregator', 'tribe_imports_wo_server_deregister_files' ); -
jesseeproductions created this gist
Dec 1, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ <?php /** * Disable WP-Oauth Select 2 Script on Single Tribe Events Editor * */ function tribe_wo_server_deregister_files() { if ( 'tribe_events' !== get_post_type() ) { return; } wp_dequeue_script( 'wo_admin_select2' ); } add_action( 'admin_print_scripts-post-new.php', 'tribe_wo_server_deregister_files' ); add_action( 'admin_print_scripts-post.php', 'tribe_wo_server_deregister_files' );