Changeset 3248124
- Timestamp:
- 02/27/2025 10:28:33 PM (2 weeks ago)
- 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 28 28 29 29 add_action( 'add_meta_boxes', array( $this, 'wpb_wctm_pro_version_features_add' ) ); 30 add_filter('wpb_wctm_the_content', 'do_shortcode'); 30 31 } 31 32 … … 310 311 311 312 foreach ($q_tabs as $tab){ 312 313 313 $attr_tab = array(); 314 314 $attr_tab['title'] = $tab->post_title; … … 318 318 319 319 } 320 return $tabs; 321 320 321 return apply_filters('wpb_wctm_dynamic_tabs', $tabs); 322 322 } 323 323 … … 329 329 public function wpb_wctm_processing_dynamic_tabs ( $tabs ) { 330 330 331 $wpb_tabs =$this->wpb_wctm_get_tabs();331 $wpb_tabs = $this->wpb_wctm_get_tabs(); 332 332 333 333 foreach ( $wpb_tabs as $tab ){ 334 335 334 $tabs[$tab["id"]] = array( 336 335 'title' => __( $tab['title'], 'wpb-woocommerce-tab-manager' ), … … 338 337 'callback' => array ( $this, 'wpb_wctm_the_content_tabs' ) 339 338 ); 340 341 339 } 342 340 343 return $tabs;341 return $tabs; 344 342 } 345 343 … … 350 348 351 349 public function wpb_wctm_the_content_tabs ( $id, $tab ) { 352 353 350 $content_post = get_post($id); 354 351 $content = $content_post->post_content; 355 $content = apply_filters(' the_content', $content);352 $content = apply_filters('wpb_wctm_the_content', $content); 356 353 $content = str_replace(']]>', ']]>', $content); 357 354 echo $content; 358 359 355 } 360 356 -
wpb-woocommerce-custom-tab-manager/tags/1.4/main.php
r3005850 r3248124 4 4 * Plugin URI: https://wpbean.com/downloads/wpb-woocommerce-custom-tab-manager-pro/ 5 5 * Description: Customizing WooCommerce product tab is super easy with this plugin. 6 * Version: 1. 36 * Version: 1.4 7 7 * Author: wpbean 8 8 * Author URI: https://wpbean.com -
wpb-woocommerce-custom-tab-manager/tags/1.4/readme.txt
r3238898 r3248124 4 4 Requires at least: 5.0 5 5 Tested up to: 6.7.2 6 Stable tag: 1. 36 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 185 185 * Tested with WooCommerce 8.3.1 186 186 187 = version 1.4 = 188 * Fix: the_content filter is removed to the tab content. 189 * Tested with WooCommerce 9.7.0 190 187 191 == Upgrade notice == -
wpb-woocommerce-custom-tab-manager/trunk/inc/class.wpb-woocommerce-custom-tab-manager.php
r2970931 r3248124 28 28 29 29 add_action( 'add_meta_boxes', array( $this, 'wpb_wctm_pro_version_features_add' ) ); 30 add_filter('wpb_wctm_the_content', 'do_shortcode'); 30 31 } 31 32 … … 310 311 311 312 foreach ($q_tabs as $tab){ 312 313 313 $attr_tab = array(); 314 314 $attr_tab['title'] = $tab->post_title; … … 318 318 319 319 } 320 return $tabs; 321 320 321 return apply_filters('wpb_wctm_dynamic_tabs', $tabs); 322 322 } 323 323 … … 329 329 public function wpb_wctm_processing_dynamic_tabs ( $tabs ) { 330 330 331 $wpb_tabs =$this->wpb_wctm_get_tabs();331 $wpb_tabs = $this->wpb_wctm_get_tabs(); 332 332 333 333 foreach ( $wpb_tabs as $tab ){ 334 335 334 $tabs[$tab["id"]] = array( 336 335 'title' => __( $tab['title'], 'wpb-woocommerce-tab-manager' ), … … 338 337 'callback' => array ( $this, 'wpb_wctm_the_content_tabs' ) 339 338 ); 340 341 339 } 342 340 343 return $tabs;341 return $tabs; 344 342 } 345 343 … … 350 348 351 349 public function wpb_wctm_the_content_tabs ( $id, $tab ) { 352 353 350 $content_post = get_post($id); 354 351 $content = $content_post->post_content; 355 $content = apply_filters(' the_content', $content);352 $content = apply_filters('wpb_wctm_the_content', $content); 356 353 $content = str_replace(']]>', ']]>', $content); 357 354 echo $content; 358 359 355 } 360 356 -
wpb-woocommerce-custom-tab-manager/trunk/main.php
r3005850 r3248124 4 4 * Plugin URI: https://wpbean.com/downloads/wpb-woocommerce-custom-tab-manager-pro/ 5 5 * Description: Customizing WooCommerce product tab is super easy with this plugin. 6 * Version: 1. 36 * Version: 1.4 7 7 * Author: wpbean 8 8 * Author URI: https://wpbean.com -
wpb-woocommerce-custom-tab-manager/trunk/readme.txt
r3238898 r3248124 4 4 Requires at least: 5.0 5 5 Tested up to: 6.7.2 6 Stable tag: 1. 36 Stable tag: 1.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 185 185 * Tested with WooCommerce 8.3.1 186 186 187 = version 1.4 = 188 * Fix: the_content filter is removed to the tab content. 189 * Tested with WooCommerce 9.7.0 190 187 191 == Upgrade notice ==
Note: See TracChangeset
for help on using the changeset viewer.