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.
';
}
?>
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();