Skip to content

Instantly share code, notes, and snippets.

Created November 26, 2015 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6cb8ecfc6ba3d1d8f5d1 to your computer and use it in GitHub Desktop.
Save anonymous/6cb8ecfc6ba3d1d8f5d1 to your computer and use it in GitHub Desktop.
add_filter('prosites_gateways_tabs', 'psts_is_gateway_tab', 10, 1);
function psts_is_gateway_tab($tabs) {
$section_options = array(
'header_save_button' => true,
'button_name' => 'gateways',
);
$page = sanitize_html_class( @$_GET['page'], 'gateway_prefs' );
$tabs['infusionsoft'] = array_merge( $section_options, array(
'title' => __( 'Infusionsoft', 'psts' ),
'desc' => array(
__( 'Use your Infusionsoft Merchant Account to process payments in Pro Sites', 'psts' ),
),
'url' => sprintf(
'admin.php?page=%1$s&tab=%2$s',
esc_attr( $page ),
esc_attr( 'infusionsoft' )
)
));
return $tabs;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment