-
-
Save anonymous/6cb8ecfc6ba3d1d8f5d1 to your computer and use it in GitHub Desktop.
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
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