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.8.1

do_action('woocommerce_update_options_payment_gateways_') is found 2 times:

  • /includes/admin/settings/class-wc-settings-payment-gateways-react.php line 207
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
                 * @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 333
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    } 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: