Options( 'enable_buyer' ) ) { add_action( 'admin_footer', [ $this, 'bulkScript' ], 10 ); add_action( 'load-edit.php', [ $this, 'bulkAction' ] ); } } public function bulkForm() { ?>
با استفاده از قسمت ارسال پیام واتساپ ، میتوانید آزمایش کنید که آیا سرویس شما به خوبی به افزونه متصل شده است یا خیر.

'; } else { echo '

Using the 360Messenger messaging section, you can test whether your service is well connected to the plugin or not.

'; } ?>

شماره دریافت کننده
'; } else { echo '
'; } ?>
شماره واتساپ دریافت کننده پیام را وارد نمایید. شماره ها را با کاما (,) جدا کنید.'; } else { echo 'Enter the 360Messenger number of the recipient of the message. Separate numbers with commas (,).'; } ?>

متن پیام واتساپ
'; } else { echo '
'; } ?>
متن دلخواهی که میخواهید به دریافت کننده ارسال کنید را وارد کنید.'; } else { echo 'Enter the desired text you want to send to the recipient.'; } ?>

'; } else { echo '

'; } ?>
Send360Messenger( $data ); if ( $response === true ) { ?>
پیام با موفقیت ارسال شد.
تعداد مخاطبین با حذف شماره های تکراری =>'; } else{ $Number=' Number '; echo '

The message was sent successfully.
The number of contacts by removing the numbers duplicate =>'; } ?>

خطا: پیام ارسال نشد. پاسخ وبسرویس:'; } else { echo '

Error: Message could not be sent. Web service response:'; } ?>

current_action(); if ( $action != 'send_360Messenger' ) { return; } $post_ids = array_map( 'absint', (array) $_REQUEST['post'] ); $mobiles = []; foreach ( $post_ids as $order_id ) { $mobiles[] = WooNotify()->buyerMobile( $order_id ); } $mobiles = implode( ',', array_unique( array_filter( $mobiles ) ) ); echo '
'; exit(); } } new WooNotify_360Messenger_Bulk();