1. Home
  2. Docs
  3. VocePress
  4. Developers
  5. Hooks & Filters

Hooks & Filters

The VocePress theme has numerous hooks and filters throughout the frontend (and admin area) to make it extremely easy for anyone to connect and expand the functionality and capabilities of VocePress-powered WordPress sites.

NOTE: If you are less familiar with using PHP in your functions.php file or writing your own plugins, you can used the Addon Module: Custom Blocks to use the familiarity of the WordPress editor to create blocks that can be connected to any WordPress and VocePress hook.

VocePress Hooks

Note: VocePress hooks introduce a new naming convention that many WordPress developers have moved to when naming hooks & filters.  The convention appears as “theme name” / “location” / “hook/filter name”.

  • Before Canvas Hook
    • vocepress/frontend/before_canvas()
    • Filters you will find in this area:
      • FILTER: vocepress_skip_to_content_link()
      • FILTER: vocepress_mobile_vertical_header()
  • After Canvas Hook
    • vocepress/frontend/after_canvas()
  • Before Header Hook
    • vocepress/frontend/before_header()
  • Main Header Hook
    • vocepress/frontend/header()
    • Filters you will find in this area:
      • FILTER: vocepress_main_header()
      • FILTER: vocepress_mobile_header()
  • After Header Hook
    • vocepress/frontend/after_header();
    • Filters you will find in this area:
      • FILTER: vocepress_page_header()
  • Before Main Area Hook
    • vocepress/frontend/before_main()
    • Filters you will find in thearea
      • FILTER: vocepress_archive_header()  [only on archive.php template file]
      • FILTER: vocepress_search_header() [only on search.php template file]
  • After Main Area Hook
    • vocepress/frontend/after_main()
    • Filters you will find in this area:
      • FILTER: vocepress_single_post_author_bio() [only on single.php template file]
      • FILTER: vocepress_single_post_navigation() [only on single.php template file]
      • FILTER: vocepress_entry_comments() [only on single.php template file]
      • FILTER: vocepress_loop_navigation() [only on search.php template file]
  • Before WordPress Loop Hook
    • vocepress/frontend/before_loop()
  • After WordPress Loop Hook
    • vocepress/frontend/after_loop()
  • Before Entry Header Hook
    • vocepress/frontend/entry/before_header()
    • Filters in this area:
      • FILTER: vocepress_entry_featured_media()
  • Entry Header Hook
    • vocepress/frontend/entry/header()
    • Filters in this area:
      • FILTER: vocepress_entry_header_meta()
      • FILTER: vocepress_entry_title()
  • After Entry Header Hook
    • vocepress/frontend/entry/after_header()
  • Before Entry Content Hook
    • vocepress/frontend/entry/before_content()
  • After Entry Content Hook
    • vocepress/frontend/entry/after_content()
  • Before Entry Footer Hook
    • vocepress/frontend/entry/before_footer()
  • Entry Footer Hook
    • vocepress/frontend/entry/footer()
  • After Entry Footer Hook
    • vocepress/frontend/entry/after_footer()
  • Before Entry Grid Header Hook
    • vocepress/frontend/entry_grid/before_header()
    • Filters in this area:
      • FILTER: vocepress_entry_grid_featured_media()
  • Entry Grid Header Hook
    • vocepress/frontend/entry_grid/header()
    • Filters in this area:
      • FILTER: vocepress_entry_grid_header_meta()
      • FILTER: vocepress_entry_grid_title()
  • After Entry Grid Header Hook
    • vocepress/frontend/entry_grid/after_header()
  • Before Entry Grid Content Hook
    • vocepress/frontend/entry_grid/before_content()
  • After Entry Grid Content Hook
    • vocepress/frontend/entry_grid/after_content()
  • Before Entry Grid Footer Hook
    • vocepress/frontend/entry_grid/before_footer()
  • Entry Grid Footer Hook
    • vocepress/frontend/entry_grid/footer()
    • Filters in this area:
      • FILTER: vocepress_entry_grid_footer_meta()
  • After Entry Grid Footer Hook
    • vocepress/frontend/entry_grid/after_footer()
  • Before Sidebar Hook
    • vocepress/frontend/before_sidebar()
  • After Sidebar Hook
    • vocepress/frontend/after_sidebar()
  • Before Footer Hook
    • vocepress/frontend/before_footer()
  • Main Footer Hook
    • vocepress/frontend/footer()
    • Filters you will find here:
      • FILTER: vocepress_main_footer()
  • After Footer Hook
    • vocepress/frontend/after_footer()
  • Before Primary and Sidebar Hook
    • vocepress/frontend/before_primary_and_sidebar()
  • After Primary and Sidebar Hook
    • vocepress/frontend/after_primary_and_sidebar()
  • Before Header on Search Entries
    • vocepress/frontend/entry_search/before_header()
  • Header on Search Entries
    • vocepress/frontend/entry_search/header()
    • Filters in this area:
      • FILTER: vocepress_entry_search_title()
  • After Header on Search Entries
    • vocepress/frontend/entry_search/after_header()
  • Before Content on Search Entries
    • vocepress/frontend/entry_search/before_content()
  • After Content on Search Entries
    • vocepress/frontend/entry_search/after_content()
  • Before Footer on Search Entries
    • vocepress/frontend/entry_search/before_footer()
  • Footer on Search Entries
    • vocepress/frontend/entry_search/footer()
  • After Footer on Search Entries
    • vocepress/frontend/entry_search/after_footer()
  • Logo Hook
    • vocepress/frontend/logo()
    • Filters in this area:
      • FILTER: vocepress_default_logo()
  • Mobile Logo Hook
    • vocepress/frontend/mobile_logo()
    • Filters in this area:
      • FILTER: vocepress_default_mobile_logo()
  • Before WordPress Comments Hook
    • vocepress/frontend/before_comments()
  • Before WordPress Comments List Hook
    • vocepress/frontend/before_comments_list()
    • Filters you will find here:
      • FILTER: vocepress_comments_title()
      • FILTER: vocepress_comments_navigation()
  • After WordPress Comments List Hook
    • vocepress/frontend/after_comments_list()
    • Filters you will find here:
      • FILTER: vocepress_comments_navigation()
      • FILTER: vocepress_comments_closed()
  • After WordPress Comments Hook
    • vocepress/frontend/after_comments()
Was this article helpful to you? Yes No

How can we help?