Class Inbound_API
Inbound_API Class
Renders API returns as a JSON array
public
|
|
public static
|
|
public static
boolean
|
|
public static
array|mixed
|
|
public static
|
|
public static
string
|
|
public static
integer
|
|
public static
integer
|
#
get_results_per_page( )
Get number of results per page to return uses REQUEST but falls back on self::$results_per_page |
public static
array
|
|
public static
array
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
leads_prepare_tax_query( ARRAY $args, ARRAY $params )
Builds a tax_query ARRAY from included parameters if applicable. Used for tag searches and lead list searches. |
public static
|
|
public static
ARRAY
|
#
prepare_lead_results( OBJECT $results )
Converts WP_Query object into array and imports additional lead data |
public static
|
|
public static
|
|
public static
|
|
public static
INT
|
|
public static
|
|
public static
|
|
public static
ARRAY
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
analytics_get_tracking_code( ARRAY $args = array() )
Stores tracked link data into wp_inbound_tracked_links table |
public static
|
|
public static
|
string |
VERSION
API Version |
#
'1'
|
public static
boolean
|
$pretty_print
Pretty Print? |
#
false
|
public static
boolean
|
$log_requests
Log API requests? |
#
true
|
public static
boolean
|
$is_valid_request
Is this a valid request? |
#
false
|
public static
integer
|
$user_id
User ID Performing the API Request |
#
0
|
public static
object
|
$stats
Instance of EDD Stats class |
|
public static
array
|
$data
Response data to return |
#
array()
|
public static
boolean
|
$override
|
#
true
|
public static
integer
|
$results_per_page
|
#
50
|
public static
string
|
$tracking_endpoint
|
#
'inbound'
|