Support » Theme: GeneratePress » New filter suggestion

  • Hey there,
    within the generatepress/inc/structure/post-meta.php file is a method called generate_content_nav which generates the next/prev post navigation.

    There is a filter called generate_category_post_navigation for the third parameter $in_same_term being passed to the WordPress default previous_post_link() and next_post_link() methods.

    Unfortunately there is no filter for the fourth parameter $excluded_terms.

    It is not too bad as the function itself is pluggable and therefore can be overwritten from within a childtheme. But it would be a lot cleaner if there was simply another filter, for example generate_excluded_category_post_navigation for excluding certain categories from the next/prev postnavigation.

    Hope this helps,

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘New filter suggestion’ is closed to new replies.