I don’t see why not.
-
Hook to
template_redirect
(you already did). -
Conditionals should work at this point, so use
is_single()
/is_singular()
/ etc to check for what you need. - Use
remove_action()
/remove_filter()
to unhook unwanted functionality.
Related Posts:
- Custom media upload content for inserting custom post shortcode
- Redesigning Custom Post Type “Add New” page
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- Creating a default Custom Post Template that a Theme can override
- How to load a new template page according to a particular URL?
- How to get the custom page get_permalink?
- Updating post meta for custom post types
- remove custom taxonomy metabox form custom post type
- Custom Post Type Statuses
- How to Build a Movie Library in WordPress 3.x
- Get image URL from media library in input
- Way to hook into a sidebar call to replace it with a custom sidebar
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Is it possible to create Custom Post plug-in?
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Making a Template for a CPT created by a plugin
- Unable to delete custom post types, confusion around capabilities
- Adding CSS to custom post type admin page causes error
- Redirect to another page using contact form 7? [closed]
- Using ACF default value to autoincrement a number field
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Adding custom meta boxes to specified custom post type
- Plugin generated unexpected output – No PHP errors
- Custom Post Type template for homepage
- Custom Post Type, Custom Columns List
- Need to edit author permissions | custom taxonomy
- Is it possible to pin a post in second position from top
- How to get the custom field value using SQL query
- Check if theme supports sidebar
- How to display the category name in the tab and post inside the tab in WordPress?
- custom post type plugin error [closed]
- How to display the custom post related blog by category?
- Problem with checked box on wp car manager plugin
- Ultimate Members Default Post Layout problem
- custom post type get_posts() function not work
- Create multiple posts when a custom post is created
- $wpdb->insert not working inside save_post tag
- Cannot view Custom Post Type no matter what I try
- How to add jquery to my custom post type wp plugin
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- get_option include in my adsense
- Making a Custom Post Type Publish Loop
- Is an Office a custom post type [closed]
- Wrong block appender button showing
- How to access the page without registering in wordpress
- CPT template is not being automatically used single post pages
- How to make content as required in custom post type?
- public custom posts not showing in my wordpress plugin
- How to provide page_template path in custom plugin using WordPress
- How Do I Use The WordPress Plugin Posts 2 Posts by Scribu?
- Notify Admins about Plugin Merge
- Why does including a file in theme’s functions.php not work?
- WooCommerce – Call to undefined function is_woocommerce()
- OEmbed from Pinterest
- Change the name of an installed plugin
- Issue with post request to admin-post.php
- like to keep reading plugin
- Check if email address exists front end with AJAX in a plugin
- Global matrix for shortcodes/content for every page
- How to add class in plugin only for network site?
- Plugin Development sqlite or WordPress’ database
- How to write a plugin to add users to a mail list
- WordPress plugin for activating other plugins
- Keep a post copy when this one is updated – issue
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- How to create a custom shortcode based on the layout?
- How to let user store a file in plugin directory but not have it get deleted on update?
- Prevent direct access to WordPress plugin assets?
- WordPress custom taxonomy not showing
- How to automatically add edit link on frontpage post of any wordpress theme?
- plugins_url() works everywhere but wp_reqister_script()
- Integrating boxtal PHP library into a custom WordPress Plugin
- Images under 1MB are not being compressed
- Sanitize $_GET variable when comparing
- Where can I save plugin data?
- show my own admin_notices after a post has been published
- How to add update function to plugin without adding it to https://wordpress.org/plugins/ [closed]
- How to edit link for comment count
- Integrating Custom Database with WordPress
- How to add the search page link to the anchor tag?
- Need to know if my approach to designing a geneaology plug-in for wordpress makes sense
- Creating one user access account for all the multiple sites
- I am Getting Sorry, no posts matched your criteria on form submit only for certain page [duplicate]
- wpdb update method is updating but not refreshing the current page data
- Dynamic input fields in WordPress Plugin
- Custom role not listed
- Creating a user ‘add custom field’ section
- How to show post attachment image
- Can a developer adopt a plugin marked as “not updated in over 2 years”?
- How wordpress plugin hooks works? [duplicate]
- Post curl function save twice using plugin hook function wordpress
- get_option returning a different value from what’s saved
- Plugin: Custom menu item problem
- Getting warning of Missing argument 2 for wpdb::prepare()
- add_meta_box showing blank screen in my page
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class
- How do i fix this error?