Uses
| Uses | Description |
|---|---|
| wp-includes/formatting.php: esc_url() | Checks and cleans a URL. |
| wp-includes/link-template.php: get_previous_posts_page_link() | Retrieves the previous posts page link. |
Displays or retrieves the previous posts page link.
(bool) (Optional) Whether to echo the link.
Default value: true
(string|void) The previous posts page link if $echo = false.
File: wp-includes/link-template.php
function previous_posts( $echo = true ) {
$output = esc_url( get_previous_posts_page_link() );
if ( $echo ) {
echo $output;
} else {
return $output;
}
} | Version | Description |
|---|---|
| 0.71 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/previous_posts