Snippets: Alter Default Numbered Pagination Settings

/**
 * Example for changing pagination arguments
 *
 * See framework/pagination.php for more info on this filter
 */
function myprefix_pagination_args( $args ) {
	$args['prev_text'] = 'Previous';
	$args['next_text'] = 'Next';
	return $args;
}
add_filter( 'wpex_pagination_args', 'myprefix_pagination_args' );

Snippet Type: PHP

Posted Under: Other

All PHP snippets should be added via a child theme's functions.php file.