PluginProbe
Themify Builder / 7.7.0
Themify Builder v7.7.0
7.8.1 7.8.0 7.7.9 7.7.8 7.7.7 7.7.6 7.7.5 7.7.4 7.7.3 7.7.2 trunk 7.6.0 7.6.1 7.6.2 7.6.3 7.6.4 7.6.5 7.6.6 7.6.7 7.6.8 7.6.9 7.7.0 7.7.1
themify-builder / includes / plugin-compat / wpcourseware.php

wpcourseware.php in Themify Builder 7.7.0, at includes/plugin-compat/wpcourseware.php

28 lines 909 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Builder Plugin Compatibility Code
4 *
5 * @package Themify_Builder
6 * @subpackage Themify_Builder/classes
7 */
8
9 /**
10 * WP Courseware
11 * @link https://flyplugins.com/wp-courseware/
12 */
13 class Themify_Builder_Plugin_Compat_wpcourseware {
14
15 static function init() {
16 add_action( 'wpcw_unit_after_single_content', array( __CLASS__, 'disbale_builder_content' ) );
17 }
18
19 public static function disbale_builder_content():void {
20 remove_filter( 'the_content', array( 'Themify_Builder', 'builder_show_on_front' ), 11 );
21 add_action('themify_after_post_content',array( __CLASS__, 'enable_builder_content' ),1);
22 }
23
24 public static function enable_builder_content():void {
25 remove_action('themify_after_post_content',array( __CLASS__, 'enable_builder_content' ),1);
26 add_filter( 'the_content', array( 'Themify_Builder', 'builder_show_on_front' ), 11 );
27 }
28 }