How can we help?

If you are looking for support for our Poka theme, this is the place!

Home Forums Poka v2 support Review url

This topic contains 1 reply, has 2 voices, and was last updated by  admin 6 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1616

    seobaz
    Participant

    Hi ı want to change http://www.aaa.com/review/betfair/

    http://www.aaa.com/inceleme/betfair/

    how can I do it

    • This topic was modified 6 months, 3 weeks ago by  seobaz.
    #1620

    admin
    Keymaster

    Hi,

    You can change it by adding the following snippet to your functions.php in your child theme:

    add_filter( 'register_post_type_args', 'change_slug_affiliates_cpt', 10, 2 );
    function change_slug_affiliates_cpt( $args, $post_type ) {
    
        if ( $post_type == 'affiliates') {
            $args['rewrite']['slug'] = 'inceleme';
        }
    
        return $args;
    }
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.