| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
// Fix for the GT3 page builder: http://www.gt3themes.com/wordpress-gt3-page-builder-plugin/ |
| 9 |
/** @global string $pagenow */ |
| 10 |
if ( has_action( 'ecpt_field_options_' ) ) { |
| 11 |
global $pagenow; |
| 12 |
if ( $pagenow === 'admin.php' ) { |
| 13 |
|
| 14 |
remove_action( 'admin_init', 'pb_admin_init' ); |
| 15 |
} |
| 16 |
} |