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.

publisher_session_start()

publisher_session_end()

publisher_core_boot()

publisher_approval_send($options)

publisher_send_email($to, $subject, $message, Email)

publisher_entry_save_start($entryId, $entryData)

publisher_entry_save_end($entryId, $entryData)

publisher_delete_entry((array) $args)

publisher_delete_approval($entryId)

publisher_delete_draft($entryId, $languageId)

publisher_delete_translation($entryId, $languageId)

publisher_modify_phrase_variables($phrases)

publisher_modify_category_variables($categoryId, $categoryVars)

publisher_request_revision($versionNumber)

publisher_set_language(Session, $langauge)

publisher_load_settings($settings)

publisher_toolbar_status($saveOptions)

publisher_toolbar_extra()

publisher_toolbar_languages($languages)

Last updated