Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function modifyPostTypeParams( $params )
- {
- $params[ 'labels' ][ 'name' ] = 'Vendors';
- $params[ 'labels' ][ 'singular_name' ] = 'Vendor';
- $params[ 'labels' ][ 'add_new_item' ] = 'Add New Vendor';
- $params[ 'labels' ][ 'edit_item' ] = 'Edit Vendor';
- $params[ 'labels' ][ 'new_item' ] = 'New Vendor';
- $params[ 'labels' ][ 'view' ] = 'View Vendors';
- $params[ 'labels' ][ 'view_item' ] = 'View Vendor';
- $params[ 'labels' ][ 'search_items' ] = 'Search Vendors';
- $params[ 'labels' ][ 'not_found' ] = 'No Vendors found';
- $params[ 'labels' ][ 'not_found_in_trash' ] = 'No Vendors found in Trash';
- $params[ 'labels' ][ 'parent' ] = 'Parent Vendor';
- $params[ 'singular_label' ] = 'Vendors';
- $params[ 'rewrite' ] = array( 'slug' => 'vendors/%category%', 'with_front' => false );
- $params[ 'has_archive' ] = 'vendors';
- return $params;
- }
- add_filter( BasicGoogleMapsPlacemarks::PREFIX . 'post-type-params', array( $this, 'modifyPostTypeParams' ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement