su_shortcode_display_posts_prevnext_pagination

The shortcodes-ultimate su shortcode display posts prevnext pagination function.

Published Date - February 15, 2021

Description

su_shortcode_display_posts_prevnext_pagination();

Usage

The following example is for adding a hook callback.

if ( !function_exists( 'su_shortcode_display_posts_prevnext_pagination' ) ) {
    require_once ABSPATH . PLUGINDIR . 'shortcodes-ultimateshortcodes-ultimate/includes/shortcodes/display-posts.php';
}



// NOTICE! Understand what this does before running.
$result = su_shortcode_display_posts_prevnext_pagination();
            

Defined

The function is defined in the following location(s).

shortcodes-ultimate/includes/shortcodes/display-posts.php

function su_shortcode_display_posts_prevnext_pagination() {

	$prev = su_shortcode_display_posts_prevnext_pagination_link( 'prev' );
	$next = su_shortcode_display_posts_prevnext_pagination_link( 'next' );

	if ( ! $next && ! $prev ) {
		return;
	}

	// phpcs:disable
	printf( '<div class="su-display-posts-pagination">%s%s</div>', $prev, $next );
	// phpcs:enable

}