Plugin Directory

Changeset 3248124


Ignore:
Timestamp:
02/27/2025 10:28:33 PM (2 weeks ago)
Author:
wpbean
Message:

removed the_content filter for the tab content.

Location:
wpb-woocommerce-custom-tab-manager
Files:
3 edited
7 copied

Legend:

Unmodified
Added
Removed
  • wpb-woocommerce-custom-tab-manager/tags/1.4/inc/class.wpb-woocommerce-custom-tab-manager.php

    r2970931 r3248124  
    2828
    2929            add_action( 'add_meta_boxes', array( $this, 'wpb_wctm_pro_version_features_add' ) );
     30            add_filter('wpb_wctm_the_content', 'do_shortcode');
    3031        }
    3132
     
    310311
    311312            foreach ($q_tabs as $tab){
    312 
    313313                $attr_tab = array();
    314314                $attr_tab['title']                      =   $tab->post_title;
     
    318318
    319319            }
    320             return $tabs;
    321 
     320
     321            return apply_filters('wpb_wctm_dynamic_tabs', $tabs);
    322322        }
    323323
     
    329329        public function wpb_wctm_processing_dynamic_tabs ( $tabs ) {
    330330
    331             $wpb_tabs   =  $this->wpb_wctm_get_tabs();
     331            $wpb_tabs = $this->wpb_wctm_get_tabs();
    332332
    333333            foreach ( $wpb_tabs as $tab ){
    334 
    335334                $tabs[$tab["id"]] = array(
    336335                    'title'     =>  __( $tab['title'], 'wpb-woocommerce-tab-manager' ),
     
    338337                    'callback'  =>  array ( $this, 'wpb_wctm_the_content_tabs' )
    339338                );
    340 
    341339            }
    342340
    343            return $tabs;
     341            return $tabs;
    344342        }
    345343
     
    350348       
    351349        public function wpb_wctm_the_content_tabs ( $id, $tab ) {
    352 
    353350            $content_post   = get_post($id);
    354351            $content        = $content_post->post_content;
    355             $content        = apply_filters('the_content', $content);
     352            $content        = apply_filters('wpb_wctm_the_content', $content);
    356353            $content        = str_replace(']]>', ']]>', $content);
    357354            echo $content;
    358 
    359355        }
    360356
  • wpb-woocommerce-custom-tab-manager/tags/1.4/main.php

    r3005850 r3248124  
    44 * Plugin URI:        https://wpbean.com/downloads/wpb-woocommerce-custom-tab-manager-pro/
    55 * Description:       Customizing WooCommerce product tab is super easy with this plugin.
    6  * Version:           1.3
     6 * Version:           1.4
    77 * Author:            wpbean
    88 * Author URI:        https://wpbean.com
  • wpb-woocommerce-custom-tab-manager/tags/1.4/readme.txt

    r3238898 r3248124  
    44Requires at least: 5.0
    55Tested up to: 6.7.2
    6 Stable tag: 1.3
     6Stable tag: 1.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    185185* Tested with WooCommerce 8.3.1
    186186
     187= version 1.4 =
     188* Fix: the_content filter is removed to the tab content.
     189* Tested with WooCommerce 9.7.0
     190
    187191== Upgrade notice ==
  • wpb-woocommerce-custom-tab-manager/trunk/inc/class.wpb-woocommerce-custom-tab-manager.php

    r2970931 r3248124  
    2828
    2929            add_action( 'add_meta_boxes', array( $this, 'wpb_wctm_pro_version_features_add' ) );
     30            add_filter('wpb_wctm_the_content', 'do_shortcode');
    3031        }
    3132
     
    310311
    311312            foreach ($q_tabs as $tab){
    312 
    313313                $attr_tab = array();
    314314                $attr_tab['title']                      =   $tab->post_title;
     
    318318
    319319            }
    320             return $tabs;
    321 
     320
     321            return apply_filters('wpb_wctm_dynamic_tabs', $tabs);
    322322        }
    323323
     
    329329        public function wpb_wctm_processing_dynamic_tabs ( $tabs ) {
    330330
    331             $wpb_tabs   =  $this->wpb_wctm_get_tabs();
     331            $wpb_tabs = $this->wpb_wctm_get_tabs();
    332332
    333333            foreach ( $wpb_tabs as $tab ){
    334 
    335334                $tabs[$tab["id"]] = array(
    336335                    'title'     =>  __( $tab['title'], 'wpb-woocommerce-tab-manager' ),
     
    338337                    'callback'  =>  array ( $this, 'wpb_wctm_the_content_tabs' )
    339338                );
    340 
    341339            }
    342340
    343            return $tabs;
     341            return $tabs;
    344342        }
    345343
     
    350348       
    351349        public function wpb_wctm_the_content_tabs ( $id, $tab ) {
    352 
    353350            $content_post   = get_post($id);
    354351            $content        = $content_post->post_content;
    355             $content        = apply_filters('the_content', $content);
     352            $content        = apply_filters('wpb_wctm_the_content', $content);
    356353            $content        = str_replace(']]>', ']]>', $content);
    357354            echo $content;
    358 
    359355        }
    360356
  • wpb-woocommerce-custom-tab-manager/trunk/main.php

    r3005850 r3248124  
    44 * Plugin URI:        https://wpbean.com/downloads/wpb-woocommerce-custom-tab-manager-pro/
    55 * Description:       Customizing WooCommerce product tab is super easy with this plugin.
    6  * Version:           1.3
     6 * Version:           1.4
    77 * Author:            wpbean
    88 * Author URI:        https://wpbean.com
  • wpb-woocommerce-custom-tab-manager/trunk/readme.txt

    r3238898 r3248124  
    44Requires at least: 5.0
    55Tested up to: 6.7.2
    6 Stable tag: 1.3
     6Stable tag: 1.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    185185* Tested with WooCommerce 8.3.1
    186186
     187= version 1.4 =
     188* Fix: the_content filter is removed to the tab content.
     189* Tested with WooCommerce 9.7.0
     190
    187191== Upgrade notice ==
Note: See TracChangeset for help on using the changeset viewer.