Created
February 23, 2017 10:10
-
-
Save JoeHana/e90ebab12ca0841d9e655dd5392f6d35 to your computer and use it in GitHub Desktop.
Change Labels of Listing Post Type
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 | |
/** | |
* Change Labels of Listing Post Type | |
*/ | |
add_filter( 'wpsight_post_type_labels_listing', 'custom_post_type_labels_listing' ); | |
function custom_post_type_labels_listing( $labels ) { | |
$labels = array( | |
'name' => _x( 'Listings', 'listing', 'wpcasa' ), | |
'singular_name' => _x( 'Listing', 'listing', 'wpcasa' ), | |
'add_new' => _x( 'Add New', 'listing', 'wpcasa' ), | |
'add_new_item' => _x( 'Add New Listing', 'listing', 'wpcasa' ), | |
'edit_item' => _x( 'Edit Listing', 'listing', 'wpcasa' ), | |
'new_item' => _x( 'New Listing', 'listing', 'wpcasa' ), | |
'view_item' => _x( 'View Listing', 'listing', 'wpcasa' ), | |
'search_items' => _x( 'Search Listings', 'listing', 'wpcasa' ), | |
'not_found' => _x( 'No listings found', 'listing', 'wpcasa' ), | |
'not_found_in_trash' => _x( 'No listings found in Trash', 'listing', 'wpcasa' ), | |
'menu_name' => _x( 'Listings', 'listing', 'wpcasa' ), | |
); | |
return $labels; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment