class-redux-thirdparty-fixes.php (905B)
1 <?php 2 /** 3 * Redux ThirdParty Fixes Class 4 * 5 * @class Redux_ThirdParty_Fixes 6 * @version 3.0.0 7 * @package Redux Framework/Classes 8 */ 9 10 defined( 'ABSPATH' ) || exit; 11 12 if ( ! class_exists( 'Redux_ThirdParty_Fixes', false ) ) { 13 14 /** 15 * Class Redux_ThirdParty_Fixes 16 */ 17 class Redux_ThirdParty_Fixes extends Redux_Class { 18 19 /** 20 * Redux_ThirdParty_Fixes constructor. 21 * 22 * @param object $parent ReduxFramework pointer. 23 */ 24 public function __construct( $parent ) { 25 parent::__construct( $parent ); 26 27 $this->gt3_page_builder(); 28 } 29 30 /** 31 * GT3 Page Buiolder fix. 32 */ 33 private function gt3_page_builder() { 34 // Fix for the GT3 page builder: http://www.gt3themes.com/wordpress-gt3-page-builder-plugin/. 35 if ( has_action( 'ecpt_field_options_' ) ) { 36 global $pagenow; 37 38 if ( 'admin.php' === $pagenow ) { 39 remove_action( 'admin_init', 'pb_admin_init' ); 40 } 41 } 42 } 43 } 44 }