Changeset 2728045
- Timestamp:
- 05/22/2022 03:14:08 PM (4 years ago)
- Location:
- wc-shipping-method-description/trunk
- Files:
-
- 3 edited
-
includes/smdfw-wpml.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
shipping-method-description-for-woocommerce.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-shipping-method-description/trunk/includes/smdfw-wpml.php
r2665966 r2728045 11 11 $zone = new WC_Shipping_Zone( 0 ); // Rest of the the world. 12 12 foreach ( $zone->get_shipping_methods() as $method ) { 13 do_action( 'wpml_register_single_string', 'admin_texts_woocommerce_shipping', $method->id . '_shipping_method_description', $method->get_option( 'description' ) );13 do_action( 'wpml_register_single_string', 'admin_texts_woocommerce_shipping', 'shipping_method_' . $method->instance_id . '_description', $method->get_option( 'description' ) ); 14 14 } 15 15 16 16 foreach ( WC_Shipping_Zones::get_zones() as $zone ) { 17 17 foreach ( $zone['shipping_methods'] as $method ) { 18 do_action( 'wpml_register_single_string', 'admin_texts_woocommerce_shipping', $method->id . '_shipping_method_description', $method->get_option( 'description' ) );18 do_action( 'wpml_register_single_string', 'admin_texts_woocommerce_shipping', 'shipping_method_' . $method->instance_id . '_description', $method->get_option( 'description' ) ); 19 19 } 20 20 } … … 25 25 add_filter( 'smdfw_description_output', 'smdfw_translate_description', 10, 2 ); 26 26 function smdfw_translate_description( $description, $method ) { 27 return apply_filters( 'wpml_translate_single_string', $description, 'admin_texts_woocommerce_shipping', $method->method_id . '_shipping_method_description' );27 return apply_filters( 'wpml_translate_single_string', $description, 'admin_texts_woocommerce_shipping', 'shipping_method_' . $method->instance_id . '_description' ); 28 28 } -
wc-shipping-method-description/trunk/readme.txt
r2713246 r2728045 3 3 Tags: woocommerce, shipping, description 4 4 Requires at least: 4.0 5 Tested up to: 5.85 Tested up to: 6.0 6 6 Requires PHP: 5.3 7 Stable tag: 1.2. 47 Stable tag: 1.2.5 8 8 License: GPLv3 or later License 9 9 WC requires at least: 2.6 10 WC tested up to: 5.510 WC tested up to: 6.4 11 11 12 12 Add a description to all WooCommerce shipping methods on cart and checkout pages. … … 28 28 == Changelog == 29 29 30 = 1.2.5 = 31 * Tested up to WP 6.0, WC 6.4 32 * Fix: WPML description translation for each method instance 33 34 = 1.2.4 = 35 * Fix: Check WC is activated before using WC function 36 30 37 = 1.2.3 = 31 38 * Add CSS class to description HTML output … … 39 46 = 1.2.0 = 40 47 * Feature: allow HTML tags in description 41 * Fix: wrong variable name when guessing field position48 * Fix: Wrong variable name when guessing field position 42 49 43 50 = 1.1.0 = 44 51 * Added Table Rate Shipping compatibility 45 * Fix: function redeclaration error with Polylang integration52 * Fix: Function redeclaration error with Polylang integration 46 53 47 54 = 1.0.0 = -
wc-shipping-method-description/trunk/shipping-method-description-for-woocommerce.php
r2713244 r2728045 6 6 * Author: Thomas Charbit 7 7 * Author URI: https://thomascharbit.fr 8 * Version: 1.2. 48 * Version: 1.2.5 9 9 * License: GPLv3 or later License 10 10 * Requires at least: 4.4 11 * Tested up to: 5.811 * Tested up to: 6.0 12 12 * WC requires at least: 2.6 13 * WC tested up to: 5.513 * WC tested up to: 6.4 14 14 */ 15 15
Note: See TracChangeset
for help on using the changeset viewer.