get() static public method

Fetch next, previous or first post
static public get ( string $what = 'next' ) : string
$what string prev, next or first
return string URL of requested post
Ejemplo n.º 1
0
/**
 * Shortcut to \PressBooks\Book::get( 'first' );
 *
 * @return string URL of first post
 */
function pb_get_first()
{
    return \PressBooks\Book::get('first');
}