Created
May 25, 2022 21:20
-
-
Save rafsuntaskin/0a8c1e2f44bdc82585593a167e1cb30a to your computer and use it in GitHub Desktop.
Metabox View plugin breaking Attendee Registration page
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 | |
add_action( 'init', 'rafsuntaskin_disable_metabox_views_on_ar_page', 2 ); | |
function rafsuntaskin_disable_metabox_views_on_ar_page() { | |
if ( isset( $_GET['tickets_provider'] ) ) { | |
remove_action( 'init', 'mb_views_load', 5 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment