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
- Remove H1 title in admin post edit screen
- How to Display News in a Timeline with Headline, Category, and Time?
- List all sidebar names?
- Multiple plugins vs combined one
- Using add_filter inside another class
- WordPress plugin installation error
- How long does it take for a new plugin to be approved?
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- Detecting when a custom taxonomy has been changed and display alert?
- How to make my plugin GDPR compatible?
- Why is the Settings API is not saving my array of options
- Why is an action callback function from an instance of a class always invoking the same function from an instance?
- Register Page Template from Plugin
- Making a plugin only available on the front-end for the logged in super admin
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Is it necessary to auto delete my WP plugin database tables when users deactivate/delete my plugin?
- Namespaced shortcode?
- Plugins ignored a line breaks or tag in the WordPress comment functions
- How to get path or root of plugin folder, not file or dir?
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- Elementor Custom Control: How to get input value?
- Create “new pages” within the admin section of plugin
- More gentle way to hook WordPress custom url
- Creating teams of users in WordPress
- Creating a plugin that will display text on every page
- Xamp installed local wordpress not allowing to publish or install plugin
- How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?
- WordPress cron job running more than once
- How to display emails as a post?
- Correct way to expand custom WordPress plugin functions
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Update wordpress user roles not working as excepted
- is it possible to fetch data from a remote api while admin is writing a new post?
- Can’t access 3rd party API, code works on local server but not on wordpress
- Front End Page Not Loading Header Footer
- Media Upload to custom database and Custom Directory
- TinyMCE how to add css when inputing a text
- Can plugin automatically update if i hide the update notification?
- Apache rewrite rules and wordpress problem
- get recent 12 days post then random in wordpress
- Active Plugins for current blog in WP Multisite Network? [duplicate]
- Many Field in Front End User Registration form insert as post
- WordPress Plugin Reviewer
- Plugin to display text before a post
- Get all the related data from WordPress DB
- wp doesn’t recognize my plugin if I don’t login as WP user (or as WP Admin)
- WordPress s2 member plugin not working [closed]
- How to add a simple design in classic editor plugin creating post page through another Wp plugin
- Is it possible to use Classes between WordPress plugins with separate namespaces?