Viewing 1 replies (of 1 total)
  • Hello @ayhanrv!

    You can add this hook to your function file.

    add_filter( 'register_post_type_args', 'wpcourse_register_post_type_args', 10, 2 );
    function wpcourse_register_post_type_args( $args, $post_type ) {
        if ( 'courses' === $post_type ) {
            $args['rewrite']['slug'] = 'sggd';//here you can add your own slug
        }
        return $args;
    }

    Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘Custom permalinks to courses’ is closed to new replies.