first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
/**
* Class WPDesk_Flexible_Shipping_UK_States
*/
class WPDesk_Flexible_Shipping_Shorcode_Unit_Weight implements \FSVendor\WPDesk\PluginBuilder\Plugin\HookablePluginDependant {
use \FSVendor\WPDesk\PluginBuilder\Plugin\PluginAccess;
/**
* Hooks.
*/
public function hooks() {
add_shortcode( 'unit_weight', [ $this, 'shortcode_unit_weight' ] );
}
/**
* Shortcode Unit Weight.
*
* @return string
*/
public function shortcode_unit_weight() {
return '[' . get_option( 'woocommerce_weight_unit', '' ) . ']';
}
}