How to two different message display in bulk action like action and action 2

How to two different message display in bulk action like action and action 2

Below my code

if((isset($_POST[‘action2’]) && ($_POST[‘action2’] !== ‘delete’)))
{
$myListTable->process_bulk_action();
$successmsg =’fff

‘;
}
elseif((isset($_POST[‘action2’]) && ($_POST[‘action2’] == ‘delete’)))
{
$myListTable->process_bulk_action();
$successmsg =’Country(ies) Deleted Successfully’;
}

elseif((isset($_POST[‘action’]) && ($_POST[‘action’] == ‘delete’)))
{
$myListTable->process_bulk_action();
$successmsg ='<p class=”message”>Select Record(s)</p>’;

}

But not working

Read more here:: How to two different message display in bulk action like action and action 2

Leave a Reply

Your email address will not be published. Required fields are marked *