ChargeForms
Developers

Hooks Reference

PHP actions and filters exposed by ChargeForms today.

ChargeForms's hook system is intentionally small right now — every hook below is real and currently used internally by the plugin itself, not an aspirational API surface.

Actions

chargeforms_after_submission

Fires after an entry has been saved, notifications sent, and any Post Field auto-creation has run.

do_action( 'chargeforms_after_submission', $entry_id, $values, $form );

This is what the built-in webhook and email integrations hook into — a failing integration callback is caught internally and never breaks the actual submission, so it's safe to add your own callback here without risking a visitor's form failing to submit.

chargeforms_integration_error

Fires when a registered integration throws while dispatching for a submission (used internally to power the admin's Integration Failure Notices).

do_action( 'chargeforms_integration_error', $integration_key, $exception, $entry_id );

Filters

chargeforms_register_integrations

Register an additional integration to run on chargeforms_after_submission for every form that has it configured.

add_filter( 'chargeforms_register_integrations', function ( array $integrations ) {
	$integrations[] = new My_Custom_Integration();
	return $integrations;
} );

What's not here yet

There's no field-type registration filter, no email-template filter, and no CSV-export filter today — the field-type and rendering layers described in Custom Field Types are extended by editing the relevant PHP/JS files directly rather than through a filter, since no stable extension point for those exists yet.