Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gabrielmerovingi/2cb0164c839eb9e2478abd1e507eca4f to your computer and use it in GitHub Desktop.
/**
* Register Gateway in MarketPress
* @since 1.0
* @version 1.0
*/
function mycred_pro_add_marketpress_gateway( $gateways ) {
$global = ( is_multisite() && mycred_centralize_log() ) ? true : false;
$gateways[ MYCRED_SLUG ] = array( 'MP_Gateway_myCRED_New', MYCRED_DEFAULT_LABEL, $global, false );
return $gateways;
}
add_filter( 'mp_gateway_api/get_gateways', 'mycred_pro_add_marketpress_gateway' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment