Extending Publisher
The following hooks are available within Publisher's codebase which you can subscribe to and either alter data (depending on the hook), or perform additional actions when the hooks are called. For full context into the hooks it is best to search the Publisher codebase for instances of the hooks.
If you have an idea for a new hook please don't hesitate to reach out. Just provide an example of what the hook does and the benefit of adding it, and I'll consider adding it to the codebase.
1
publisher_session_start()
2
3
publisher_session_end()
4
5
publisher_core_boot()
6
7
publisher_approval_send($options)
8
9
publisher_send_email($to, $subject, $message, Email)
10
11
publisher_entry_save_start($entryId, $entryData)
12
13
publisher_entry_save_end($entryId, $entryData)
14
15
publisher_delete_entry((array) $args)
16
17
publisher_delete_approval($entryId)
18
19
publisher_delete_draft($entryId, $languageId)
20
21
publisher_delete_translation($entryId, $languageId)
22
23
publisher_modify_phrase_variables($phrases)
24
25
publisher_modify_category_variables($categoryId, $categoryVars)
26
27
publisher_request_revision($versionNumber)
28
29
publisher_set_language(Session, $langauge)
30
31
publisher_load_settings($settings)
32
33
publisher_toolbar_status($saveOptions)
34
35
publisher_toolbar_extra()
36
37
publisher_toolbar_languages($languages)
Copied!
Last modified 6mo ago
Copy link