Created
May 7, 2015 20:03
-
-
Save tribulant/8396dd4ac8b6cb27e772 to your computer and use it in GitHub Desktop.
WordPress Shopping Cart: Redirect/Hosted Payment Gateway step 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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