';print_r($filter_args);echo ''; $status = $filter_args['status'] ?? ''; if (empty($status) || $status == 'all') { $status = ['publish', 'draft', 'private', 'trash']; } $page_number = absint($filter_args['page_number'] ?? 1) ?: 1; $limit = absint(($filter_args['page_item'] ?? 0) ?: ABPRF_Function::get_option('abprf_per_page_item', 20)); $count = ($page_number - 1) * $limit + 1; $cpt = ABPRF_Function::get_cpt(); $filters['status'] = $status; $filters['posts_per_page'] = $limit; $filters['paged'] = $page_number - 1; $post_ids = ABPRF_Query::get_post_id($filters); if (!empty($post_ids) && sizeof($post_ids) > 0) { $total_post = sizeof(ABPRF_Query::get_post_id(['status' => $status])); $property_counts = ABPRF_Query::get_property_counts($post_ids); $new_post_url = admin_url('post-new.php?post_type=' . $cpt); ?>
| . |
|
|
|
|---|