Created
March 17, 2016 16:26
-
-
Save mgibbs189/fad4d986437b9df4ac80 to your computer and use it in GitHub Desktop.
Rename "Posts" to "Articles"
This file contains hidden or 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 | |
function fwp_rename_post( $params, $class ) { | |
if ( 'post_types' == $params['facet_name'] && 'post' == $params['facet_value'] ) { | |
$params['facet_display_value'] = 'Articles'; | |
} | |
return $params; | |
} | |
add_filter( 'facetwp_index_row', 'fwp_rename_post', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment