Regarding Permalink Slug

This topic contains 3 replies, has 3 voices, and was last updated by  Patrik 5 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • 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: 27815

    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: 1971

    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)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket