Your account expired support, please renew to get your support.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Rename preset slugs #29741
    associazionelamaruca
    Support Expired

    I tried to edit as follows but it doesn’t work (The result:THAT LINKS IS BROKEN):

    function activland_change_post_types_slug( $args, $post_type ) {

    /*item post type slug*/
    if ( ‘accommodation’ === $post_type ) {
    $args[‘rewrite’][‘slug’] = ‘dove-dormire’;
    }elseif(‘activland_activities’ === $post_type){
    $args[‘rewrite’][‘slug’] = ‘attivita’;
    }elseif(‘activland_whatwedo’ === $post_type){
    $args[‘rewrite’][‘slug’] = ‘cosa-facciamo’;
    }

    return $args;
    }
    add_filter( ‘register_post_type_args’, ‘activland_change_post_types_slug’, 10, 2 );

Viewing 1 post (of 1 total)