Theme hooks allows you to hook into a theme functionality without modifying the core files. Read more about Actions and Filters API here – https://codex.wordpress.org/Plugin_API
How to use Hooks.
In your child theme edit functions.php and add your scripts. Let’s say you want to add something before sidebar, we’ll use estand_sidebar_before hook. The code example would be:
1 2 3 4 |
add_action( 'estand_sidebar_before', 'estand_add_sidebar_message' ); function estand_add_sidebar_message() { echo esc_html__( 'Sidebar Message', 'estand' ); } |
List of available Hooks:
- estand_head_top()
- estand_head_bottom()
- estand_header_before()
- estand_header()
- estand_header_after()
- estand_masthead
- estand_body_top()
- estand_body_bottom()
- estand_primary_content_top()
- estand_primary_content_before()
- estand_primary_content_query()
- estand_primary_content_after()
- estand_primary_content_bottom()
- estand_comments_before()
- estand_comments()
- estand_comments_after()
-
estand_entry_section_before()
- estand_entry_header_before()
-
estand_entry_header()
-
estand_entry_header_after()
-
estand_entry_featured_image()
- estand_entry_content_top()
- estand_entry_content_bottom()
- estand_page_title_before()
- estand_page_title_after()
- estand_sidebar_before()
- estand_sidebar_after()
- estand_footer_before()
- estand_footer()
- estand_footer_after()