Created
November 7, 2016 23:22
-
-
Save GeoffEW/22e0b1b2c90a19f35532349610f48601 to your computer and use it in GitHub Desktop.
Disable Ninja Forms on the The Events Calendar Attendees page. Fixes bug where Ninja Forms overrides the attendee list.
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 characters
<? php | |
/** | |
* Disable Ninja Forms on the The Events Calendar Attendees page. | |
* | |
* Fixes bug where Ninja Forms overrides the attendee list. | |
*/ | |
if( is_admin() && ! empty( $_GET['page'] ) && 'tickets-attendees' === $_GET['page'] ) { | |
remove_action( 'admin_init', array( Ninja_Forms::instance()->menus[ 'forms' ], 'admin_init' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment