Created
November 7, 2016 23:09
-
-
Save elimn/a944c3f0772f25d5abc5fb0a28d91eab to your computer and use it in GitHub Desktop.
MT | ETP | Enable compatibility with Ninja Forms 3.11
This file contains 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