PluginProbe
YayMail – WooCommerce Email Customizer / 4.3.2
YayMail – WooCommerce Email Customizer v4.3.2
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
← All changes | src/Shortcodes/ShortcodesLoader.php +12 -21 trunk4.3.2 View file →
@@ -23,32 +23,23 @@
23 23 protected function __construct() {
24 24
25 25 $this->shortcode_intances = [
26 26 CommonShortcodes::get_instance(),
27 -
27 + OrderDetailsShortcodes::get_instance(),
28 + HookShortcodes::get_instance(),
29 + ShippingShortcodes::get_instance(),
30 + BillingShortcodes::get_instance(),
31 + PaymentsShortcodes::get_instance(),
32 + NewUsersShortcodes::get_instance(),
33 + ResetPasswordsShortcodes::get_instance(),
34 + OrderMetaShortcodes::get_instance(),
28 35 LegacyCustomShortcodes::get_instance(),
29 36
37 + /**
38 + * @since 4.0.6
39 + */
40 + RefundShortcodes::get_instance(),
30 41 ];
31 -
32 - if ( function_exists( 'WC' ) && defined( 'YAYMAIL_VERSION' ) ) {
33 - $this->shortcode_intances = array_merge(
34 - $this->shortcode_intances,
35 - [
36 - OrderDetailsShortcodes::get_instance(),
37 - HookShortcodes::get_instance(),
38 - ShippingShortcodes::get_instance(),
39 - BillingShortcodes::get_instance(),
40 - PaymentsShortcodes::get_instance(),
41 - NewUsersShortcodes::get_instance(),
42 - ResetPasswordsShortcodes::get_instance(),
43 - OrderMetaShortcodes::get_instance(),
44 - /**
45 - * @since 4.0.6
46 - */
47 - RefundShortcodes::get_instance(),
48 - ]
49 - );
50 - }
51 42
52 43 do_action( 'yaymail_register_shortcodes', $this );
53 44
54 45 foreach ( yaymail_get_emails() as $email ) {