woocommerce_webhook_options_save

woocommerce_webhook_options_save

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_webhook_options_save') is found 1 times:

  • /includes/admin/class-wc-admin-webhooks.php line 141
     
    		$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() ) {