Skip to content

Instantly share code, notes, and snippets.

@carmoreira
Last active July 7, 2021 09:54
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 carmoreira/3799fdc7e706e7d6d10e51a1b522c4f3 to your computer and use it in GitHub Desktop.
Save carmoreira/3799fdc7e706e7d6d10e51a1b522c4f3 to your computer and use it in GitHub Desktop.
Fix to use Advisor Quiz and Flatsome UX Builder
if(array_key_exists( 'page', $_GET ) && $_GET['page'] == 'uxbuilder'){
remove_action('init', 'advq_metaboxes_init',89);
}
if(array_key_exists( 'uxb_iframe', $_GET )){
remove_action('init', 'advq_metaboxes_init',89);
}
if(array_key_exists( 'ux_builder_action', $_POST ) && $_POST['ux_builder_action'] == 'do_shortcode'){
remove_action('init', 'advq_metaboxes_init',89);
}
if( array_key_exists( 'action', $_GET ) && strpos( $_GET['action'], 'ux_builder' ) !== false ){
remove_action('init', 'advq_metaboxes_init',89);
}
if( array_key_exists( 'action', $_POST ) && strpos( $_POST['action'], 'ux_builder' ) !== false ){
remove_action('init', 'advq_metaboxes_init',89);
}
if(array_key_exists( 'action', $_POST ) && $_POST['action'] == 'ux_builder_save'){
remove_action('init', 'advq_metaboxes_init',89);
}
@vinentvisty
Copy link

You are the best man. Thank you somuch !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment