Advertisement
Guest User

BGMP modify CPT params

a guest
Mar 10th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1. public function modifyPostTypeParams( $params )
  2. {
  3.     $params[ 'labels' ][ 'name' ]               = 'Vendors';
  4.     $params[ 'labels' ][ 'singular_name' ]      = 'Vendor';
  5.     $params[ 'labels' ][ 'add_new_item' ]       = 'Add New Vendor';
  6.     $params[ 'labels' ][ 'edit_item' ]          = 'Edit Vendor';
  7.     $params[ 'labels' ][ 'new_item' ]           = 'New Vendor';
  8.     $params[ 'labels' ][ 'view' ]               = 'View Vendors';
  9.     $params[ 'labels' ][ 'view_item' ]          = 'View Vendor';
  10.     $params[ 'labels' ][ 'search_items' ]       = 'Search Vendors';
  11.     $params[ 'labels' ][ 'not_found' ]          = 'No Vendors found';
  12.     $params[ 'labels' ][ 'not_found_in_trash' ] = 'No Vendors found in Trash';
  13.     $params[ 'labels' ][ 'parent' ]             = 'Parent Vendor';
  14.     $params[ 'singular_label' ]                 = 'Vendors';
  15.     $params[ 'rewrite' ]                        = array( 'slug' => 'vendors/%category%', 'with_front' => false );
  16.    
  17.     $params[ 'has_archive' ]                    = 'vendors';
  18.  
  19.     return $params;
  20. }
  21. add_filter( BasicGoogleMapsPlacemarks::PREFIX . 'post-type-params', array( $this, 'modifyPostTypeParams' ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement