pmpro_get_order_json

Get order JSON.

Description

pmpro_get_order_json(); 

Usage

  1. if ( !function_exists( 'pmpro_get_order_json' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/services.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pmpro_get_order_json(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/services.php  
  1. function pmpro_get_order_json() { 
  2. $order_id = $_REQUEST['order_id']; 
  3. $order = new MemberOrder($order_id); 
  4. echo json_encode($order); 
  5. exit;