From d64cda7ac35b0014b63a39bd8f7f29455817716d Mon Sep 17 00:00:00 2001 From: Dennis Kieselhorst Date: Wed, 8 Apr 2020 12:47:07 +0200 Subject: [PATCH] allow custom next_previous_post_link function in child theme --- library/structure/content-extensions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/structure/content-extensions.php b/library/structure/content-extensions.php index 358367d..288dfff 100644 --- a/library/structure/content-extensions.php +++ b/library/structure/content-extensions.php @@ -752,6 +752,8 @@ function travelify_next_previous() { /****************************************************************************************/ add_action( 'travelify_after_post_content', 'travelify_next_previous_post_link', 10 ); + +if ( ! function_exists( 'travelify_next_previous_post_link' ) ) : /** * Shows the next or previous posts link with respective names. */ @@ -775,6 +777,7 @@ function travelify_next_previous_post_link() { } } } +endif; /****************************************************************************************/