link_pages( string $before = '<br />', string $after = '<br />', string $next_or_number = 'number', string $nextpagelink = 'next page', string $previouspagelink = 'previous page', string $pagelink = '%', string $more_file = '' )
This function has been deprecated. Use wp_link_pages() instead.
Print list of pages based on arguments.
Description
See also
Parameters
- $before
-
(string) (Optional)
Default value: '<br />'
- $after
-
(string) (Optional)
Default value: '<br />'
- $next_or_number
-
(string) (Optional)
Default value: 'number'
- $nextpagelink
-
(string) (Optional)
Default value: 'next page'
- $previouspagelink
-
(string) (Optional)
Default value: 'previous page'
- $pagelink
-
(string) (Optional)
Default value: '%'
- $more_file
-
(string) (Optional)
Default value: ''
Return
(string)
Source
File: wp-includes/deprecated.php
function link_pages($before='<br />', $after='<br />', $next_or_number='number', $nextpagelink='next page', $previouspagelink='previous page', $pagelink='%', $more_file='') { _deprecated_function( __FUNCTION__, '2.1.0', 'wp_link_pages()' ); $args = compact('before', 'after', 'next_or_number', 'nextpagelink', 'previouspagelink', 'pagelink', 'more_file'); return wp_link_pages($args); }
Changelog
Version | Description |
---|---|
2.1.0 | Use wp_link_pages() |
0.71 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/link_pages