| 1 |
<?php |
| 2 |
/** |
| 3 |
* Builder Plugin Compatibility Code |
| 4 |
* |
| 5 |
* @package Themify_Builder |
| 6 |
* @subpackage Themify_Builder/classes |
| 7 |
*/ |
| 8 |
|
| 9 |
/** |
| 10 |
* Dokan Pro |
| 11 |
* @link https://wedevs.com/dokan/ |
| 12 |
*/ |
| 13 |
class Themify_Builder_Plugin_Compat_dokan { |
| 14 |
|
| 15 |
static function init() { |
| 16 |
add_action( 'dokan_before_refund_policy', array( __CLASS__, 'dokan_before_refund_policy' ) ); |
| 17 |
add_action( 'dokan_after_refund_policy', array( __CLASS__, 'dokan_after_refund_policy' ) ); |
| 18 |
} |
| 19 |
|
| 20 |
public static function dokan_before_refund_policy():void { |
| 21 |
remove_filter( 'the_content', array( 'Themify_Builder', 'builder_show_on_front' ), 11 ); |
| 22 |
} |
| 23 |
|
| 24 |
public static function dokan_after_refund_policy():void { |
| 25 |
add_filter( 'the_content', array( 'Themify_Builder', 'builder_show_on_front' ), 11 ); |
| 26 |
} |
| 27 |
} |