$limit, 'offset' => ( $page > 1 ) ? ( ( $page - 1 ) * $limit ) : 0 ); $deleteListings = get_option( 'allow_delete_listings' ); $deleteListings = strval( $deleteListings ) === 'true'; if ( isset( $_GET['order'] ) ) $params['order'] = esc_attr( $_GET['order'] ); if ( isset( $_GET['order_by'] ) ) $params['order_by'] = esc_attr( $_GET['order_by'] ); ?> $user ], true ); ?>

$listing_type ): ?> getListings( true, [ 'listing_type_id' => $index ], '' ); if ( $i === 0 ) { $default_listing_type = isset( $query_var[1] ) ? intval( $query_var[1] ) : $index; $data['default_type'] = $default_listing_type; } $i++; ?> 0 ): ?>
$listing_type ): ?>

  • (getListings( true, [ 'listing_type_id' => $type_index ], '' ) ) ?> )
  • (getListings( true, [ 'listing_type_id' => $type_index ], 'publish' ) ) ?> )
  • (getListings( true, [ 'listing_type_id' => $type_index ], 'pending' ) ) ?> )
  • (getListings( true, [ 'listing_type_id' => $type_index ], 'draft' ) ) ?> )
  • (getListings( true, [ 'listing_type_id' => $type_index ], 'trash' ) ) ?> )
roles as $user_role_value) { foreach ($userRoles->roles as $role_key => $role) { if ($role_key === $user_role_value) $capabilities = $role['capabilities']; } } if ($capabilities && (isset($capabilities['listing_moderation']) && $capabilities['listing_moderation'])) { $status = true; } foreach ( $listing_types as $id => $value ): ?>

8, 'class' => 'nav nav-pills', 'item_class' => 'nav-item', 'link_class' => 'nav-link', ); ?> $value ): ?>