Skip to content

Instantly share code, notes, and snippets.

@elimn
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save elimn/d60cb5f4b7334059c636 to your computer and use it in GitHub Desktop.

Select an option

Save elimn/d60cb5f4b7334059c636 to your computer and use it in GitHub Desktop.
MT | TEC | Hide "Thanks for Updating" or installing page
<?php
/*
* Prevents Tribe Thanks for Updating page from automatically displaying
*/
function tribe_remove_activation_page() {
if ( class_exists( 'Tribe__Events__Activation_Page' ) ) {
remove_action( 'admin_init', array( Tribe__Events__Activation_Page::instance(), 'maybe_redirect' ), 10, 0 );
}
}
add_action( 'admin_init', 'tribe_remove_activation_page', 1 );
add_action( '_network_admin_menu', 'tribe_remove_activation_page', 20 );
add_action( '_admin_menu', 'tribe_remove_activation_page', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment