Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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