woocommerce_webhook_options_save

woocommerce_webhook_options_save

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_webhook_options_save') is found 1 times:

  • /includes/admin/class-wc-admin-webhooks.php line 141
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    $webhook->save();
     
    // Run actions.
    do_action( 'woocommerce_webhook_options_save', $webhook->get_id() );
    if ( $errors ) {
        // Redirect to webhook edit page to avoid settings save actions.
        wp_safe_redirect( admin_url( 'admin.php?page=wc-settings&tab=advanced&section=webhooks&edit-webhook=' . $webhook->get_id() . '&error=' . rawurlencode( implode( '|', $errors ) ) ) );
        exit();
        // phpcs:ignore WordPress.Security.NonceVerification.Recommended
    } elseif ( isset( $_POST['webhook_status'] ) && 'active' === $_POST['webhook_status'] && $webhook->get_pending_delivery() ) {