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?
- Hook that get’s triggered when the author of a post is changed
- Post/Page Preview Template
- The hook for the AJAX Add to Cart button?
- My ‘post attributes’ is missing from my WordPress install
- How do I sort (order) the results from `get_children()`?
- posts page – different lengths of excerpt
- how to display full post with pagination on home page
- Forcing oembeds to top of post
- WordPress Delete hook with wp_delete_post function?
- First hook to use current page post id
- Including text at the end of every post
- custom single.php not working
- How to place HTML below the title of the (custom) post overview
- How can I hook into creating a new post and execute wp_die(), before the post is inserted into the database?
- Changing next and previous post link text
- Display page content AFTER a loop of posts
- Single post as homepage?
- Category Template: Need to display different content on first page of archives
- Admin Notices don’t display on the admin screen for certain post
- I am unable to publish/update post
- Custom WordPress Theme: Publish Date and Display Date for posts right beside each other
- How can I pass the ID of a post to a page template by clicking a url?
- Using custom post template
- Exclude category from
- Blog page not working
- Adding buttons to Add New Post and Add New Page
- get_the_excerpt() is not working as expected – returns wrong text
- Hide a specific category in admin All Posts page (WordPress)
- How to use format post in a pertinent way
- Updating post data on save (save_post vs wp_insert_post_data)
- Switch to page template when using post permalink
- Genesis + Ajax + Jquery | Failling to call action
- Get Page ID of blog homepage
- Copy post to separate database with “add_action(….)”
- Hooking into the post editing screen for an existing page only
- Trying to alter the post_content through the_post
- How do I do a page break?
- How to dynamically parse and transform post/page content before displaying it?
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- Modify posts listing at back end
- how to set social icons to product / post template (Auros theme)? [closed]
- wordpress posts template remove default template from menu
- how to hide empty fields of post category description?
- 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
- 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
- How to Featured content with images in home page?
- How do I allow certain users to make a certain type of post?
- How to add a post class on every post. (on homepage)
- Am getting duplicate data from get_posts()
- Change modified date to current date when title updated automatically
- 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
- 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?
- How to pull latest posts from a specific category
- Is update_post_meta used when save_post action hook is invoked?
- Post not using taxonomy template
- Customizing a new page used for blog posts with Avada theme
- How to prevent post update using transition_post_status
- Moved a website and excerpts don’t work for old posts
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- How to Display Most View Post in the template file?
- call a function when insert and update a custom post type
- Use special template for the first post in the loop
- Display post order ranking within wordpress loop
- Can’t get post_updated hook to work
- wp query custom orderby not custom field
- Post are not showing up
- How to change post template via url?
- How to remove related post from home page
- WP Load post with ajax and apply isotope
- Checking if some condition is matched before inserting post into database
- fire action when post is being edited as well as saved?
- Display the current post author and his url in the post header
- Display the first post’s comments of category in comments.php template
- how to style an individual page in a category [duplicate]
- How to display a certain template element only for posts published within certain time range?
- Redirecting posts in WordPress to a specific page
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- How to add a new page that will function as a separate blog/news article page
- Wp_query WooCommerce products
- Tag page that displays specific posts
- Get posts after calculating meta key
- No matching template found when using single.php
- WordPress Ajax load doesn’t work