Advertisement
phpface

Untitled

Dec 22nd, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. if( ! function_exists( 'booom_new_portfolio_slug' ) ){
  2.     /**
  3.      * Change the portfolio slug.
  4.      * @param array $args
  5.      * @return array
  6.      */
  7.     function booom_new_portfolio_slug( $args ) {
  8.         $args['labels'] =   array(
  9.             "name" => esc_html__('Galeries','booom'),
  10.             "singular_name" => esc_html__('Galerie','booom')
  11.         );
  12.         $args['rewrite']['slug']    =   'galerie'; // change the slug here.
  13.        
  14.         return $args;
  15.     }
  16.     add_filter( 'booom/cpt_portfolio/args' , 'booom_new_portfolio_slug', 20, 1 );
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement