How to disable the_post_navigation, get_next_post_link… in themes via plugin
-
Hi, I don’t know if is possible to remove the next/prev links in single.php via plugin.
Most themes uses
the_post_navigation, get_next_post_link ...
I made a plugin that creates a custom post type and taxonomy.
with a conditional in my plugin, when we’re in single.php and the post type equals the custom post type that I created, I modify ‘the_content’ filter adding my own system of next and prev links.My plugin allows template override, so if the user create a single-mycpt.php automatically this template will be used.
But I would like to by default remove these the_post_navigation, get_next_post_link functions, this way the less experimented users don’t care about overriding templates.
My question is whether it’s possible to deactivate those functions that come in many themes such as (the_post_navigation, get_next_post_link …) via my plugin.
Thanks in advance.
- The topic ‘How to disable the_post_navigation, get_next_post_link… in themes via plugin’ is closed to new replies.