As a general rule of thumb it’s a good practice not to “create” hooks within your theme. Last year Tom McFarlin wrote against placing custom hooks in your theme; however, if you are building an addon plugin (such as WooThemes and their Features plugin) it would make a grey area exception to include those hooks. (only for display purposes.
If you are looking for general hooks in WordPress to leverage I would recommend checking out Underscores or at very minimum the 2012/2013 core themes since they would use all the core hooks.
Related Posts:
- How to get Images included in Post
- What is the filter or hook to add admin controls to posts on the front end?
- How to create a template for Pages?
- What does WordPress do if I save a post without content/title? [duplicate]
- Give posts a particular template based on the assigned category
- Is there a block to print post link standalone in a block theme?
- How to access $post from a callback function
- Updating post data on save (save_post vs wp_insert_post_data)
- Switch to page template when using post permalink
- Unable to restore from backup – how to obtain old blog posts?
- Genesis + Ajax + Jquery | Failling to call action
- Get Page ID of blog homepage
- Send post id through ajax and get the post content back
- custom post template file not shown, instead all the time 404.php
- Disable sticky option for specific categories
- Copy post to separate database with “add_action(….)”
- Highlight static blog page link in header
- How to create new post content templates for my users?
- Hooking into the post editing screen for an existing page only
- How do I stop the loop from repeating in my category template?
- Trying to alter the post_content through the_post
- How do I do a page break?
- Call Web Services on post first publish
- posts not showing on index.php
- How to dynamically parse and transform post/page content before displaying it?
- Block editors annoying warnings
- Adding bootstrap classes to video shortcodes
- Hide a specific post from a page template
- How to add a class to edit_post_link?
- Tell WP to use a specific template file in posts
- Admin – no Featured image choice in create new/page|post
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- preg_replace not removed “class”
- How to make different custom post layouts?
- why the same code got different results when using query_posts in functions.php and index.php
- Divs appearing everywhere in post content
- Why won’t pagination work?
- Modify posts listing at back end
- Is it possible to give the user the chance to select between two single template files to use in a post?
- Create a custom posts page
- how to set social icons to product / post template (Auros theme)? [closed]
- How to identify and hide/remove an element from a WordPress page [closed]
- wordpress posts template remove default template from menu
- how to hide empty fields of post category description?
- Hook for changing excerpt content when excerpt not set
- Force a specific template as default
- Is it possible to add a shortcode below post title?
- showing posts of an specific category in admin custom menu with style of admin posts section
- Automatically set post_parent value
- Display Featured Posts Grid on Static Page (Gazette)
- how to handle the loop using filling bootstrap grid structure?
- Display a post via template
- Single post full screen template not inheriting WordPress role permission
- How to set a certain Custom Template to a Single Blog Post
- List all native posts in template page?
- Sidebar on single.php not showing up
- Cant’ Grab WordPress Built-in Posts Through Loop
- How to Featured content with images in home page?
- Change default post style to columns
- Post Templates and Post ID’s
- How do I allow certain users to make a certain type of post?
- How do I disable the “by author” hyperlink on posts?
- Trying to query all posts in category 4
- How to add a post class on every post. (on homepage)
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- Output Buffer Issue with Single Post View
- add_rewrite_rule and template redirect not working
- WordPress Architecture as a CMS – Posts & Pages
- Am getting duplicate data from get_posts()
- Prevent 404 of Author pages without posts
- Custom post type and taxonomy page templates
- Change modified date to current date when title updated automatically
- How to save template data into wp_post table (post_content column)
- Add a field in my rest api
- Permanently deleted posts still exist
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- created post displaying differently on front end
- Posting to WP via URL
- Is there a way to know when a page has been updated and do some action only once?
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- Restricting displayed posts to posts from only select authors
- How do I change the template specifically for single posts?
- How can I change the date format of the revision list?
- Related post not showing table of content
- How to pull latest posts from a specific category
- Post template not applying on theme (potentially rendering as Page template)
- Hook when post is set from published to draft?
- Problem paginating a subquery on a post
- Is update_post_meta used when save_post action hook is invoked?
- Post not using taxonomy template
- Why does my “Add New Post” page have an old post in it?
- Customizing a new page used for blog posts with Avada theme
- Get Category in save_post Hook
- Count singular post views automatically
- How to prevent post update using transition_post_status
- Moved a website and excerpts don’t work for old posts
- How to prevent clicking on posts
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- Single Sidebar; multiple templates! How?
- How to Display Most View Post in the template file?