Focus Action Hooks

Hooks enable you to use PHP code to add anything you want to your pages. You’ll find 4 different types of hooks in Focus:

  • $hook — Basic hooks
  • $hook — Core WordPress Theme hooks
  • $hook — Container hooks, which are 4 hooks in 1:
    • hook_before_$hook
    • hook_top_$hook
    • hook_bottom_$hook
    • hook_after_$hook
  • $hook — Post Box + Post Content hooks, which include the 4 Container hooks above plus:
    • hook_before_post_content_$hook
    • hook_top_post_content_$hook
    • hook_bottom_post_content_$hook
    • hook_after_post_content_$hook

Document Head <head>

  • hook_head_top
  • hook_before_stylesheet — before Focus CSS
  • hook_after_stylesheet — after Focus CSS
  • hook_head_bottom
    • wp_head

Document Body <body>

  • hook_before_html
  • section_header
    • header
  • section_content
    • content
      • blog — Home, Archives
      • post — Single (Posts)
      • page — Page, 404, Full Page, Landing Page
      • front — Front Page
      • focus — Focus Page
        • headline_area (blog, post, page, front, and focus)
          • byline (blog, post, page, front, and focus)
      • prev_next — Home, Archives
  • section_footer
    • footer
  • hook_after_html
    • wp_footer