Skip to content

Commit ffa5232

Browse files
author
Antti Kuosmanen
committed
Added form specific hooks to readme
1 parent e536da6 commit ffa5232

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ You can also install the plugin by directly uploading the zip file as instructed
5959

6060
Used to add validation to your forms.
6161

62+
#### Form specific hooks
63+
64+
This filter supports form specific hooks:
65+
66+
- `wplf_{form_id}_validate_submission`
67+
- `wplf_{form_slug}_validate_submission`
68+
69+
These filters are only applied for the target form by ID or slug.
70+
6271
#### Example: Google ReCaptcha integration
6372

6473
```php
@@ -102,6 +111,15 @@ function wplf_recaptcha( $return ) {
102111

103112
Triggers after the form validation is done.
104113

114+
#### Form specific hooks
115+
116+
This action supports form specific hooks:
117+
118+
- `wplf_{form_id}_post_validate_submission`
119+
- `wplf_{form_slug}_post_validate_submission`
120+
121+
These actions are only run for the target form by ID or slug.
122+
105123
#### Example: Send a thank you email to the email in the submission
106124

107125
```php

0 commit comments

Comments
 (0)