Skip to content

Instantly share code, notes, and snippets.

@pbearne
Created January 12, 2018 15:20
Show Gist options
  • Save pbearne/87b8f2ca64c7dbb40c39eb07b2b2be81 to your computer and use it in GitHub Desktop.
Save pbearne/87b8f2ca64c7dbb40c39eb07b2b2be81 to your computer and use it in GitHub Desktop.
matador_reset_list_filter_text filter example
function matador_reset_list_filter_text( $text, $tax_slug ){
switch ( $tax_slug ) {
case 'matador-locations';
return __( 'Show All Locations', 'text-domain' );
break;
case 'matador-categories';
return __( 'Show All Gategories', 'text-domain' );
break;
}
return $text;
}
add_filter( 'matador-reset-list-filter-text', 'matador_reset_list_filter_text', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment