[09-Apr-2013 15:50:11] Array
(
[status] => 201
[response] => Array
(
[collector_id] => 131258484
[operation_type] => regular_payment
<?php | |
/** | |
* Add custom rewrite rules for filtering vouchers | |
* | |
* @param array $vars | |
* @return array |
#! /bin/bash | |
# | |
# Script to deploy from Github to WordPress.org Plugin Repository | |
#prompt for plugin slug | |
echo -e "Plugin Slug: \c" | |
read PLUGINSLUG | |
# main config, set off of plugin slug | |
CURRENTDIR=`pwd` |
gbs.ready = function($) { | |
var $copy_billing_option = $('#gb_shipping_copy_billing'); | |
var $shipping_option_cache = {}; // cache options | |
$copy_billing_option.bind( 'change', function() { | |
// Loop over all gb_shipping options, unknowingly what is actually set because of customizations. | |
$('#gb-shipping [name^="gb_shipping_"]').each(function () { | |
if ( $( $copy_billing_option ).is(':checked') ) { | |
var $billing_name = this.name.replace('gb_shipping_', 'gb_billing_'); // Search for a matching field | |
$shipping_option_cache[this.name] = $(this).val(); // Cache the original option so it can be used later. | |
$( this ).val( $( '[name="' + $billing_name + '"]' ).val() ); // set the value |
<?php | |
// WP_Embed::shortcode will not proceed without a postID | |
global $post; | |
$post->ID = PHP_INT_MAX - $data['id']; // Make sure the id is unique so that it can be cached without conflict | |
echo apply_filters('the_content', $data['content'] ); |
<?php | |
if ( is_admin() ) { | |
add_filter( 'pre_set_site_transient_update_themes', 'gb_check_for_premium_theme_update' ); | |
} | |
function gb_check_for_premium_theme_update( $transient ) { | |
$current_version = 1.2; | |
$api_key = get_option('theme_api_key'); // your theme options will need to have an option to add the API key. | |
$theme_slug = 'theme_slug'; // Change to match with API Key Manager | |
$api_url = 'http://yoursite.com/check-key/'; // change to your site |
add_action( 'submit_deal', 'redirect_non_sponsor_deal_submission' ); | |
function redirect_non_sponsor_deal_submission( Group_Buying_Deal $deal ) { | |
if ( is_user_logged_in() && !gb_account_has_merchant( get_current_user_id() ) ) { | |
$deal_id = $deal->get_ID(); | |
self::redirect_to_merch_registration( $deal_id ); | |
} | |
} |
$client = new SoapClient( | |
"https://www.eway.com.au/gateway/ManagedPaymentService/test/managedcreditcardpayment.asmx?WSDL", | |
array( 'soap_version' => SOAP_1_2, 'trace' => 1, 'exceptions' => 1 ) ); | |
$header_data = new stdClass; | |
$header_data->eWAYCustomerID = '9876543211000'; | |
$header_data->Username = 'test@eway.com.au'; | |
$header_data->Password = 'test123'; | |
$header = new SoapHeader( "https://www.eway.com.au/gateway/managedpayment", "eWAYHeader", $header_data, FALSE ); |
//////////////////////////////////////////// | |
// Child Theme functions override support // | |
//////////////////////////////////////////// | |
// include functions-parent-override.php from the child theme if it exists. the child theme functions.php is loaded before the template functions.php so we need a place to load overrides afterwards (if necessary) | |
if ( file_exists( trailingslashit( STYLESHEETPATH ).'functions-parent-override.php' ) && TEMPLATEPATH != STYLESHEETPATH ) { | |
include_once trailingslashit( STYLESHEETPATH ).'functions-parent-override.php'; | |
} |
diff --git models/groupBuyingCart.class.php models/groupBuyingCart.class.php | |
index 0c8bee0690f813b094bec94269484c18bd0fc07c..0aba99614a37273440c7d162533abe1707503121 100755 | |
--- models/groupBuyingCart.class.php | |
+++ models/groupBuyingCart.class.php | |
@@ -296,8 +296,8 @@ class Group_Buying_Cart extends Group_Buying_Post_Type { | |
); | |
} else { | |
$post = array( | |
- 'post_title' => self::__( 'Anonymous' ), | |
- 'post_name' => 'anonymous', |