phpface

Untitled

Feb 22nd, 2021
957
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function cobalt_filter_portfolio_permalink( $args ){
  2.  
  3.     // Change the portfolio permalink here.
  4.     $args['rewrite']['slug'] = 'my-portfolio';
  5.  
  6.     return $args;
  7. }
  8. add_filter( 'cobalt_cpt_portfolio_args', 'cobalt_filter_portfolio_permalink', 10, 1 );
RAW Paste Data