logger
1 week ago
settings
1 week ago
views
1 week ago
class-shortcode-unit-dimension.php
1 week ago
class-shortcode-unit-weight.php
1 week ago
class-wpdesk-flexible-shipping-multilingual.php
1 week ago
flexible-shipping-settings.php
1 week ago
order-item-meta.php
1 week ago
shipping-method.php
1 week ago
class-shortcode-unit-weight.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Class WPDesk_Flexible_Shipping_UK_States |
| 5 | */ |
| 6 | class WPDesk_Flexible_Shipping_Shorcode_Unit_Weight implements \FSVendor\WPDesk\PluginBuilder\Plugin\HookablePluginDependant { |
| 7 | |
| 8 | use \FSVendor\WPDesk\PluginBuilder\Plugin\PluginAccess; |
| 9 | |
| 10 | /** |
| 11 | * Hooks. |
| 12 | */ |
| 13 | public function hooks() { |
| 14 | add_shortcode( 'unit_weight', [ $this, 'shortcode_unit_weight' ] ); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * Shortcode Unit Weight. |
| 19 | * |
| 20 | * @return string |
| 21 | */ |
| 22 | public function shortcode_unit_weight() { |
| 23 | return '[' . get_option( 'woocommerce_weight_unit', '' ) . ']'; |
| 24 | } |
| 25 | |
| 26 | } |
| 27 |