Changeset 2995756
- Timestamp:
- 11/14/2023 12:50:12 PM (2 years ago)
- Location:
- woosms-sms-module-for-woocommerce/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
src/Template/Init.php (modified) (2 diffs)
-
woosms-sms-module-for-woocommerce.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
woosms-sms-module-for-woocommerce/trunk/readme.txt
r2995624 r2995756 160 160 161 161 == Changelog == 162 163 = 3.0.1 = 164 * Bug fix https://wordpress.org/support/topic/after-update-i-cannot-view-order/ 162 165 163 166 = 3.0.0 = -
woosms-sms-module-for-woocommerce/trunk/src/Template/Init.php
r2995624 r2995756 9 9 10 10 use BulkGate\{Plugin\Debug\Logger, Plugin\Debug\Requirements, Plugin\Eshop, Plugin\Settings\Settings, Plugin\Strict, Plugin\User\Sign, Plugin\Utils\JsonResponse, WooSms\Ajax\Authenticate, WooSms\Ajax\PluginSettingsChange, WooSms\Debug\Page, WooSms\DI\Factory, WooSms\Utils\Logo, WooSms\Utils\Meta}; 11 use function method_exists, in_array; 11 12 12 13 class Init … … 42 43 if (in_array($post_type, ['shop_order', 'woocommerce_page_wc-orders'], true) && Factory::get()->getByClass(Settings::class)->load('static:application_token')) 43 44 { 44 add_meta_box('bulkgate_send_message', 'BulkGate SMS', fn ($post) => SendMessage::print(Factory::get(), wc_get_order( $post->get_id()), []), $post_type, 'side', 'high');45 add_meta_box('bulkgate_send_message', 'BulkGate SMS', fn ($post) => SendMessage::print(Factory::get(), wc_get_order(method_exists($post, 'get_id') ? $post->get_id() : $post->ID), []), $post_type, 'side', 'high'); 45 46 } 46 47 }); -
woosms-sms-module-for-woocommerce/trunk/woosms-sms-module-for-woocommerce.php
r2995624 r2995756 5 5 * Plugin URI: https://www.bulkgate.com/en/integrations/sms-plugin-for-woocommerce/ 6 6 * Description: Notify your customers about order status via SMS notifications. 7 * Version: 3.0. 07 * Version: 3.0.1 8 8 * Author: BulkGate 9 9 * Author URI: https://www.bulkgate.com/
Note: See TracChangeset
for help on using the changeset viewer.