HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/myboofola_com/wp-content/plugins/zero-bs-crm/api/quotes.php
<?php
/*
 * Jetpack CRM
 * https://jetpackcrm.com
 * V3.0
 *
 * Copyright 2020 Automattic
 *
 * Date: 04/06/2019
 */

/*
======================================================
	Breaking Checks ( stops direct access )
	====================================================== */
if ( ! defined( 'ZEROBSCRM_PATH' ) ) {
	exit( 0 );
}
/*
======================================================
	/ Breaking Checks
	====================================================== */

// Check the method
jpcrm_api_check_http_method( array( 'GET' ) );

// Process the pagination parameters from the query
$pagination = jpcrm_api_process_pagination();

global $zbs;

$args = array(
	// Search/Filtering (leave as false to ignore)
	'searchPhrase'    => '',
	// 'inArr'                   => $inArray,
	// 'quickFilters'    => $quickFilters,
	// 'isTagged'            => $hasTagIDs,
	// 'withAssigned'    => $withCustomerDeets,
	'suppressContent' => true, // NO HTML!
	'sortByField'     => 'ID',
	'page'            => $pagination['page'],
	'perPage'         => $pagination['per_page'],
	'sortOrder'       => $pagination['order'],
	'ignoreowner'     => zeroBSCRM_DAL2_ignoreOwnership( ZBS_TYPE_QUOTE ),
);

$quotes = $zbs->DAL->quotes->getQuotes( $args );

wp_send_json( $quotes, 200, JSON_UNESCAPED_SLASHES );