Skip to content

Instantly share code, notes, and snippets.

@elimn
Created November 7, 2016 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elimn/a944c3f0772f25d5abc5fb0a28d91eab to your computer and use it in GitHub Desktop.
Save elimn/a944c3f0772f25d5abc5fb0a28d91eab to your computer and use it in GitHub Desktop.
MT | ETP | Enable compatibility with Ninja Forms 3.11
<?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