1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

List of Plugin Hooks

Discussion in 'Archived Docs' started by Nick, Jun 28, 2009.

Thread Status:
Not open for further replies.
  1. Nick

    Nick Well-Known Member

    Update: I'm going to close this off. It's too much hassle for me to update because I make so many changes, and it's not really all that useful either. You're better off looking at the code in the place you need a hook, and if there isn't one, add it to the SVN or ask a developer to do it.

    Here is a list of plugin hooks. Expect this to grow as Hotaru does.

    NOTE: For Hotaru to be as flexible as possible, it's important that plugin developers include hooks within their plugins. To help other developers, please post your plugin hooks in this thread. Thanks!

    Core Files

    libs/Hotaru.php:
    hotaru_header
    admin_header_include (called from the admin theme header.php template)
    header_include (called from the default theme header.php template)

    libs/PluginFunctions.php:
    install_plugin
    upgrade_plugin

    libs/UserBase.php:
    userbase_default_permissions

    libs/Admin.php:
    admin_index
     
    Last edited: Sep 23, 2009
  2. Nick

    Nick Well-Known Member

    Admin Default Theme Plugin Hooks

    Admin Default theme

    index.php:
    admin_theme_index_replace
    admin_theme_index_header
    admin_theme_index_main
    admin_theme_index_sidebar
    admin_theme_index_footer

    header.php:
    admin_header_include_raw
    admin_announcement_first
    admin_announcement_last
    header_post_admin_title

    navigation.php:
    navigation_first
    navigation
    admin_navigation
    navigation_users

    main.php:
    main_top
    main
    main_bottom

    settings.php:
    admin_settings_top
    admin_settings_bottom

    maintenance.php:
    admin_maintenance_top
    admin_maintenance_bottom

    plugin_settings.php:
    admin_sidebar_plugin_settings (when no plugin is selected)
    admin_plugin_settings (only applies to the plugin being edited)

    plugins.php:
    plugins_top
    plugins_guide_top
    plugins_guide_bottom
    plugins_bottom

    sidebar.php:
    admin_sidebar_top
    admin_sidebar_plugin_settings
    admin_sidebar
    admin_sidebar_bottom

    footer.php:
    footer_top
    footer
    admin_footer
    footer_bottom
     
    Last edited: Oct 8, 2009
  3. Nick

    Nick Well-Known Member

    Default Theme Plugin Hooks

    Default theme

    index.php:
    theme_index_replace
    theme_index_header
    theme_index_main
    theme_index_sidebar
    theme_index_footer

    header.php:
    header_include_raw
    post_open_body
    announcement_first
    announcement_last
    header_post_title

    navigation.php:
    navigation_first
    navigation
    navigation_users
    navigation_last

    main.php:
    main_top
    main
    main_bottom

    sidebar.php:
    sidebar

    footer.php:
    footer_top
    footer
    footer_bottom
    pre_close_body
     
    Last edited: Sep 23, 2009
  4. Nick

    Nick Well-Known Member

    Categories - Plugin Hooks

    Categories Plugin

    categories_settings.php:
    categories_settings_get_values
    categories_settings_form
    categories_save_settings
     
  5. Nick

    Nick Well-Known Member

    Comments - Plugin Hooks

    Comments Plugin

    comments_settings.php:
    comments_settings_get_values
    comments_settings_form
    comments_save_settings

    comment_form.php:
    comment_form_extras

    show_comments.php:
    show_comments_content
    show_comments_avatar
    show_comments_votes
     
  6. Nick

    Nick Well-Known Member

    Disqus - Plugin Hooks

    Disqus Plugin

    disqus_settings.php:
    disqus_settings_get_values
    disqus_settings_form
    disqus_save_settings
     
  7. Nick

    Nick Well-Known Member

    Sidebar - Plugin Hooks

    Sidebar Widgets Plugin

    sidebar_widgets.php:
    sidebar_install_plugin

    sidebar_ordering.php:
    sidebar_ordering_guide_top
    sidebar_ordering_guide_bottom
     
    Last edited: Sep 23, 2009
  8. Nick

    Nick Well-Known Member

    Submit - Plugin Hooks

    Submit Plugin

    Post.php:
    post_read_post_1
    post_read_post_2
    post_add_post
    post_update_post
    post_delete_post
    post_rss_feed
    post_list_filter

    submit.php:
    submit_hotaru_header_1
    submit_hotaru_header_2
    submit_is_page_main
    submit_is_page_latest
    submit_is_page_all
    submit_form_2_check_for_errors
    submit_form_2_process_submission

    submit_settings.php:
    submit_settings_get_values
    submit_settings_form
    submit_save_settings

    list.php:
    breadcrumbs
    submit_post_breadcrumbs
    submit_pre_show_post
    submit_show_post_pre_title
    submit_show_post_title
    submit_show_post_author_date
    submit_show_post_extra_fields
    submit_show_post_extras

    post.php:
    breadcrumbs
    submit_post_breadcrumbs
    submit_pre_show_post
    submit_show_post_pre_title
    submit_show_post_title
    submit_show_post_author_date
    submit_show_post_extra_fields
    submit_show_post_extras
    submit_show_post_middle
    submit_post_show_post

    submit_edit_post.php:
    submit_form_2_assign
    submit_form_2_fields

    submit_step2.php:
    submit_form_2_assign
    submit_form_2_fields
     
    Last edited: Sep 23, 2009
  9. Nick

    Nick Well-Known Member

    Users - Plugin Hooks

    Users Plugin

    users_settings.php:
    users_settings_get_values
    users_settings_form
    users_save_settings
     
  10. Nick

    Nick Well-Known Member

    Vote - Plugin Hooks

    Vote Simple Plugin

    vote_settings.php:
    vote_settings_get_values
    vote_settings_form_1
    vote_settings_form_2
    vote_save_settings
     
Thread Status:
Not open for further replies.

Share This Page