Skip to content

Commit cfb1025

Browse files
committed
add type column in doc
1 parent 5dde852 commit cfb1025

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

docs/hooks.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,24 @@ Hook names are prefixed with `wpsp_`.
66

77
### List of hooks
88

9-
| Hook Name | Description (Purpose)
10-
| ------------- |:----------------:|
11-
| wpsp_get_settings | Tap into settings objects
12-
| wpsp_init_mailer* | Modify/replace http mailer instance
13-
| wpsp_get_http_lib | Modify/replace http library
14-
| wpsp_before_send* |
15-
| wpsp_after_send* |
16-
| wpsp_handle_response | Custom handler for http response. **Should return boolean to stop further processing.**
17-
| wpsp_recipients |
18-
| wpsp_open_tracking |
19-
| wpsp_click_tracking |
20-
| wpsp_template_id | Use a different template ID
21-
| wpsp_substitution_content_tag_name| Use a different tag for content substitution
22-
| wpsp_sender_email |
23-
| wpsp_sender_name |
24-
| wpsp_response_body |
25-
| wpsp_api_key | Use different API Key/Password
26-
| wpsp_request_headers |
27-
| wpsp_reply_to |
28-
| wpsp_body_headers |
29-
| wpsp_smtp_msys_api
30-
31-
\* These are action hooks. So return value is irrelevant.
9+
| Hook Name | Type | Description (Purpose)
10+
| ------------- |-------------|:----------------:|
11+
| wpsp_get_settings | Filter | Tap into settings objects
12+
| wpsp_init_mailer | Action | Modify/replace http mailer instance
13+
| wpsp_get_http_lib | Filter | Modify/replace http library
14+
| wpsp_before_send | Action |
15+
| wpsp_after_send | Action |
16+
| wpsp_handle_response | Filter | Custom handler for http response. **Should return boolean to stop further processing.**
17+
| wpsp_recipients | Filter |
18+
| wpsp_open_tracking | Filter |
19+
| wpsp_click_tracking | Filter |
20+
| wpsp_template_id | Filter | Use a different template ID
21+
| wpsp_substitution_content_tag_name| Filter | Use a different tag for content substitution. By default you needed to use `content` tag
22+
| wpsp_sender_email | Filter |
23+
| wpsp_sender_name | Filter |
24+
| wpsp_response_body | Filter |
25+
| wpsp_api_key | Filter | Use different API Key/Password
26+
| wpsp_request_headers | Filter |
27+
| wpsp_reply_to | Filter |
28+
| wpsp_body_headers | Filter |
29+
| wpsp_smtp_msys_api | Filter |

0 commit comments

Comments
 (0)