When call $synchronizationList->display()
every thing about table created, pagination,sort and bulk action but when its create bulk action its just create 2 input one is dropbox
that contains all of bulk action and a submit button for apply button so it doesn’t create from
tag and when a submit button doesn’t be in a form
its do nothing.
So i created a form
and every thing works fine.
add_action('admin_menu', array("Shareino", 'ShareinoAdminMenu'));
/**
* This method adds shareino items to admin menu
*/
public static function ShareinoAdminMenu()
{
add_menu_page(__('Shareino', 'access'), __('Shareino', 'access'), 'manage_options', __('shareino', 'vibe'),
array("Shareino", "shareinoSetting"), WP_PLUGIN_URL . "/shareino/assets/images/logo.gif", 80);
add_submenu_page(
'shareino',
__('Synchronize', 'access'),
__('Synchronize'),
'manage_options',
__('Synchronize'),
array("Shareino", "shareinoSynchronize"));
}
public function shareinoSynchronize()
{
$synchronizationList = new SynchronizationList();
$synchronizationList->prepare_items();
?>
<!-- Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions -->
<form id="movies-filter" method="get">
<!-- For plugins, we also need to ensure that the form posts back to our current page -->
<input type="hidden" name="page" value="<?php echo $_REQUEST['page'] ?>"/>
<!-- Now we can render the completed list table -->
<?php $synchronizationList->display() ?>
</form>
<?php
}