How to create a custom wp_list_table and bulk action in wordpress
Below is a example of how to create a custom wp_list_table and bulk actions.. Change below code according to your requirements. <?php global $wpdb; $table = $wpdb->prefix.'pp_buyer_package'; if($_REQUEST['action']=='delete' || $_REQUEST['action2']=='delete') { if(isset($_REQUEST['pak_ids']) && $_REQUEST['_wpnonce']!='') { foreach($_REQUEST['pak_ids'] as $item) { $end_time = strtotime('now'); $cr_select = 'select * from '.$wpdb->prefix.'pp_package_buyer_relation where package_id = "'.$item.'" and end_time >= "'.$end_time.'"'; $cr_result = $wpdb->get_row($cr_select); if(count($cr...