Skip to content
This repository has been archived by the owner on Jul 4, 2019. It is now read-only.

General Hooks and Filters

Tim Zook edited this page Jan 27, 2016 · 1 revision

Admin Pages

mbp_admin_page_templates - filters the admin templates used to render the admin pages
mbp_admin_settings_read - filters the settings values that are sent to the admin pages
mbp_admin_settings_update - filters the settings values that are saved by the admin pages
mbp_progress_entries_per_page - filters the number of progress entries displayed per page on the progress tab

Books

mbp_get_book - filter called when accessing a single book
mbp_update_book - filter called when updating a single book
mbp_delete_book - happens when a book is deleted
mbp_get_book_buttons - filters the list of buttons for books

Style Packs

mbp_style_pack_dirs - filters the list of directory that MyBookProgress will look in for Style Packs

Phase Templates

mbp_phase_templates - filters the list of default built-in phase templates

Settings

mbp_settings - filters the settings as they are retrieved from the database
mbp_update_settings - filters the settings as they are saved to the database

Frontend Changes

mbp_format_books_progress - filters the main frontend output for a group of books
mbp_format_book_progress - filters the main frontend output for a single book

Clone this wiki locally