Regarding Permalink Slug

This topic contains 3 replies, has 3 voices, and was last updated by  patrik 6 months, 3 weeks ago.

  • Author
    Posts
  • #2734

    saiprasad sahoo
    Expired Member
    Post count: 3

    Hi,

    I want to change the default slug “wpi_invoice” to any custom slug like “invoices”
    Please can you help me with that ?

    Somebody in your sales department promised me to do that, if I purchase a premium membership and I have got the membership.

    Please change the default slug for me.

    Thanks.

    #2735

    Alex Rollin
    Moderator
    Post count: 20511

    Hi,

    I have flagged your topic for the developers who will let us know if there is a workaround for that.

    #2737

    saiprasad sahoo
    Expired Member
    Post count: 3

    Thank you!

    #2738

    patrik
    Moderator
    Post count: 1315

    Hi,

    Try the following code and let me know if it resolves your issue or not:

    add_filter( 'wpinv_register_post_type_invoice', '_my_rewrite_slug' );
    function _my_rewrite_slug( $args ) {
        $args['rewrite'] = array( 'slug' => 'invoices');
        return $args;
    }

    Please reset the permalink from Settings->Permalink after putting the above code in functions.php file of the currently active theme.

    Regards,
    Patrik

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Regarding Permalink Slug’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.