Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created May 7, 2015 20:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribulant/8396dd4ac8b6cb27e772 to your computer and use it in GitHub Desktop.
Save tribulant/8396dd4ac8b6cb27e772 to your computer and use it in GitHub Desktop.
WordPress Shopping Cart: Redirect/Hosted Payment Gateway step 4
// WordPress Shopping Cart: Redirect/Hosted Payment Gateway step 4
// http://tribulant.com/docs/wordpress-shopping-cart-plugin/7190
function gateway_pmethods_metaboxes($page = null, $position = null, $post = null) {
add_meta_box('gateway', __('Gateway', 'checkout-gateway'), 'gateway_metabox_settings', $page, $position, 'core');
return true;
}
function gateway_metabox_settings() {
include dirname(__FILE__) . '/settings.php';
}
add_action('wpco_pmethods_metaboxes', 'gateway_pmethods_metaboxes', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment