quadmenu/redux/ReduxCore/inc/class.thirdparty.fixes.php

16 lines
417 B
PHP
Raw Normal View History

2025-01-20 11:08:41 +00:00
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Fix for the GT3 page builder: http://www.gt3themes.com/wordpress-gt3-page-builder-plugin/
/** @global string $pagenow */
if ( has_action( 'ecpt_field_options_' ) ) {
global $pagenow;
if ( $pagenow === 'admin.php' ) {
remove_action( 'admin_init', 'pb_admin_init' );
}
}