rewind_posts

The timeline below displays how wordpress function rewind_posts has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Rewind the loop posts.
 *
 * @since 1.5.0
 *
 * @global WP_Query $wp_query WordPress Query object.
 */
function rewind_posts()
{
    global $wp_query;
    if (!isset($wp_query)) {
        return;
    }
    $wp_query->rewind_posts();
}

WordPress Version: 5.3

/**
 * Rewind the loop posts.
 *
 * @since 1.5.0
 *
 * @global WP_Query $wp_query WordPress Query object.
 */
function rewind_posts()
{
    global $wp_query;
    $wp_query->rewind_posts();
}

WordPress Version: 4.4

/**
 * Rewind the loop posts.
 *
 * @since 1.5.0
 *
 * @global WP_Query $wp_query Global WP_Query instance.
 */
function rewind_posts()
{
    global $wp_query;
    $wp_query->rewind_posts();
}

WordPress Version: 4.3

/**
 * Rewind the loop posts.
 *
 * @since 1.5.0
 *
 * @global WP_Query $wp_query
 */
function rewind_posts()
{
    global $wp_query;
    $wp_query->rewind_posts();
}

WordPress Version: 3.7

/**
 * Rewind the loop posts.
 *
 * @see WP_Query::rewind_posts()
 * @since 1.5.0
 * @uses $wp_query
 *
 * @return null
 */
function rewind_posts()
{
    global $wp_query;
    return $wp_query->rewind_posts();
}