woocommerce_update_options_payment_gateways_

woocommerce_update_options_payment_gateways_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_update_options_payment_gateways_') is found 2 times:

  • /includes/admin/settings/class-wc-settings-payment-gateways-react.php line 177
    					 * @since 3.4.0
    					 *
    					 * @param int $gateway->id Gateway ID.
    					 */
    					do_action( 'woocommerce_update_options_payment_gateways_' . $gateway->id );
    					$wc_payment_gateways->init();
    				}
    			}
    
    			$this->do_update_options_action();
    		}
    
  • /includes/admin/settings/class-wc-settings-payment-gateways.php line 315
    		} else {
    			// There is a section - this may be a gateway or custom section.
    			foreach ( $wc_payment_gateways->payment_gateways() as $gateway ) {
    				if ( in_array( $current_section, array( $gateway->id, sanitize_title( get_class( $gateway ) ) ), true ) ) {
    					do_action( 'woocommerce_update_options_payment_gateways_' . $gateway->id );
    					$wc_payment_gateways->init();
    				}
    			}
    
    			$this->do_update_options_action();
    		}
    

See this hook used in plugins: