';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 ) ?: ABPET_Function::get_option( 'abpet_per_page_item', 20 ) ); $count = ( $page_number - 1 ) * $limit + 1; $cpt = ABPET_Function::get_cpt(); $filters['status'] = $status; $filters['posts_per_page'] = $limit; $filters['paged'] = $page_number; //echo '
';print_r($filters);echo ''; $post_ids = ABPET_Query::get_post_id( $filters ); if ( ! empty( $post_ids ) && sizeof( $post_ids ) > 0 ) { $total_post = sizeof( ABPET_Query::get_post_id( [ 'status' => $status ] ) ); $new_post_url = admin_url( 'post-new.php?post_type=' . $cpt ); ?>
| . |
|
[abpet-post post_id=""] |
|
|---|
' . esc_html__( 'Event was saved as draft because its configuration is incomplete:', 'abp-event-ticket' ) . '