woocommerce_admin_field_payment_gateways

woocommerce_admin_field_payment_gateways

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

do_action('woocommerce_admin_field_payment_gateways') is found 2 times:

  • /includes/admin/settings/class-wc-settings-payment-gateways.php line 112
    		 * Fires before the payment gateways settings fields are rendered.
    		 *
    		 * @since 1.5.7
    		 */
    		do_action( 'woocommerce_admin_field_payment_gateways' );
    		ob_end_clean();
    
    		if ( $this->should_render_react_section( $current_section ) ) {
    			$this->render_react_section( $current_section );
    		} elseif ( $current_section ) {
    			// Load gateways so we can show any global options they may have.
    
  • /src/Internal/Admin/Settings/PaymentProviders.php line 152
    			 * Fires before the payment gateways settings fields are rendered.
    			 *
    			 * @since 1.5.7
    			 */
    			do_action( 'woocommerce_admin_field_payment_gateways' );
    			ob_end_clean();
    
    			// Get all payment gateways, ordered by the user.
    			$payment_gateways = WC()->payment_gateways()->payment_gateways;
    
    			// Handle edge-cases for certain providers.
    

See this hook used in plugins: