Skip to content

Instantly share code, notes, and snippets.

@richtabor
Created October 12, 2017 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richtabor/602e1ae73a2cbecaf67cd474d3649459 to your computer and use it in GitHub Desktop.
Save richtabor/602e1ae73a2cbecaf67cd474d3649459 to your computer and use it in GitHub Desktop.
Use these filters to change the text of the "Next" and "Prev" pagination on the singular portfolio views.
function ava_child_portfolio_prev_text() {
return 'Previous';
}
add_filter( 'ava_portfolio_pagination_prev', 'ava_child_portfolio_prev_text', 10, 1 );
function ava_child_portfolio_next_text() {
return 'Continue';
}
add_filter( 'ava_portfolio_pagination_next', 'ava_child_portfolio_next_text', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment