isset( $_GET['page'] ) ? $_GET['page'] : '', 'tab' => 'howto', ); $howto_url = esc_url( add_query_arg( $query_args, admin_url( 'admin.php' ) ) ); ob_start(); $placeholders = ''; foreach ( YITH_WSN()->placeholder_reference() as $key => $label ) { $placeholders .= '' . $key . ', '; } $placeholders = substr( $placeholders, 0, - 2 ) ?>
: -
array( 'name' => __( 'SMS text message settings', 'yith-woocommerce-sms-notifications' ), 'type' => 'title', ), 'ywsn_messages_desc' => array( 'type' => 'yith-wc-label', 'desc' => $description, ), 'ywsn_message_test' => array( 'type' => 'ywsn-sms-send', ), 'ywsn_message_admin' => array( 'name' => __( 'Text message for admin(s)', 'yith-woocommerce-sms-notifications' ), 'desc' => __( 'This is the text message that admin(s) will receive any time the order status is changed', 'yith-woocommerce-sms-notifications' ), 'type' => 'yith-wc-textarea', 'id' => 'ywsn_message_admin', 'default' => __( '{site_title}: Order #{order_id} switched to {order_status}.', 'yith-woocommerce-sms-notifications' ), 'custom_attributes' => array( 'required' => 'required' ) ), 'ywsn_message_generic' => array( 'name' => __( 'Default customer SMS', 'yith-woocommerce-sms-notifications' ), 'desc' => __( 'This is the default message that customers receive each time the status of the order changes and if no other message is specified', 'yith-woocommerce-sms-notifications' ), 'type' => 'yith-wc-textarea', 'id' => 'ywsn_message_generic', 'default' => __( 'Your order #{order_id} on {site_title} is now {order_status}.', 'yith-woocommerce-sms-notifications' ), 'custom_attributes' => array( 'required' => 'required' ) ) ); foreach ( wc_get_order_statuses() as $key => $label ) { $messages[ 'ywsn_message_' . $key ] = array( 'name' => $label, 'type' => 'yith-wc-textarea', 'id' => 'ywsn_message_' . $key, 'default' => sprintf( __( 'Your order #{order_id} on {site_title} is now %s.', 'yith-woocommerce-sms-notifications' ), $label ), ); } $messages['ywsn_messages_section_end'] = array( 'type' => 'sectionend', ); return array( 'messages' => $messages );