Created
June 4, 2014 06:34
-
-
Save ntwb/10bf67b898e25db59b1f to your computer and use it in GitHub Desktop.
bbPress - Custom Pagination Text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: bbPress - Custom Pagination Text | |
Plugin URI: https://gist.github.com/ntwb/10bf67b898e25db59b1f | |
Description: bbPress - Custom Pagination Text | |
Version: 0.1 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ | |
function ntwb_bbpress_custom_pagination( $args ) { | |
$args['prev_text'] = 'previous'; | |
$args['next_text'] = 'next'; | |
return $args; | |
} | |
add_filter( 'bbp_topic_pagination', 'ntwb_bbpress_custom_pagination' ); | |
add_filter( 'bbp_replies_pagination', 'ntwb_bbpress_custom_pagination' ); | |
add_filter( 'bbp_search_results_pagination', 'ntwb_bbpress_custom_pagination' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment