You appear to be a bot. Output may be restricted
Description
List the plugins for which this API key is valid Given the request key ( order_code fields) we can find the[cart_details] => a:1:{i:0;a:5:{s:4:"name";s:11:"oik bbpress";s:2:"id";s:2:"41";s:11:"item_number";a:2:{s:2:"id";s:2:"41";s:7:"options";a:0:{}}s:5:"price";i0;s:8:"quantity";i:1;}} Fix: 2014/12/09 – No need to unserialize cart_details
Usage
_oik_edd_report_plugins( $fields );
Parameters
- $fields
- ( mixed ) required –
Returns
voidSource
File name: oik-edd/shortcodes/oik-edd.phpLines:
1 to 15 of 15
function _oik_edd_report_plugins( $fields ) { $order = oik_edd_query_order( $fields['type'], $fields['order_code'] ); $edd_payment_meta = get_post_meta( $order->ID, "_edd_payment_meta", true ); $cart_details = bw_array_get( $edd_payment_meta, "cart_details", null ); bw_trace2( $edd_payment_meta, "edd_payment_meta" ); if ( $cart_details ) { //$cart_details = unserialize( $cart_details ); bw_trace2( $cart_details, "cart_details" ); p( "Use the API key for the following: "); foreach ( $cart_details as $key => $cart_detail ) { _oik_edd_report_plugin( $cart_detail ); } } }View on GitHub