change venue translated slug

Home Forums Calendar Products Events Calendar PRO change venue translated slug

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1326242
    Fabrice MERON
    Participant

    Hi,

    I cannot find any satisfying answer to my problem on the forum nor in the knowledge base.

    My problem:
    I’am currently using a custom post type on my site with slug ‘lieu’.
    The Events Calendar plugin automaticaly translates its ‘venue’ slug into ‘lieu’ slug.
    Is there a way to avoid this translation (only for the slug) or to assign another slug to the venue custom post type ?

    Thank you,
    Fabrice

    #1327251
    Cliff
    Member

    Hi, Fabrice.

    You should be able to customize this via the tribe_events_register_venue_type_args filter from https://github.com/moderntribe/the-events-calendar/blob/4.5.9/src/Tribe/Venue.php#L105

    This code snippet does something different than what you’re wanting but may help you formulate your own custom code snippet:

    https://gist.github.com/cliffordp/24d4ca37f86212ed56a2e8021214d18c

    #1327309
    Fabrice MERON
    Participant

    Hi, Cliff.

    Thank you for your time. I will try this. This should do the job.

    Best regards.

    Fabrice

    #1327775
    Cliff
    Member

    Glad to have helped! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘change venue translated slug’ is closed to new replies.