WooCommerce Simply Commerce Disable Function

Hi - I am using the WooCommerce plugin and would like to disable the Simply Commerce Payment Gateway completely so that it is not shown within the admin panel.

Is there a function I can put into my functions.php file to remove this?


  • Alex Stine

    Hello Taylor Miller
    Hope you are well!

    Could you please try this code in your functions.php file of your theme?

    add_filter( 'woocommerce_payment_gateways', 'growdev_remove_unused_payment_gateways', 20, 1 );
    function growdev_remove_unused_payment_gateways( $load_gateways ) {
    	$remove_gateways = array(
    	foreach ( $load_gateways as $key => $value ) {
    		if ( in_array( $value, $remove_gateways ) ) {
    			unset( $load_gateways[ $key ] );
    	return $load_gateways;

    You may want to place this code in a mu-plugin or child theme so changes are not lost. :slight_smile:

    Please let me know if this solves your problem.

    Alex :smiley:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.