Created
January 12, 2018 15:20
-
-
Save pbearne/87b8f2ca64c7dbb40c39eb07b2b2be81 to your computer and use it in GitHub Desktop.
matador_reset_list_filter_text filter example
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
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