tribe_event_link([ $post = null], int $postId) I need this for use inside php

Home Forums Calendar Products Events Calendar PRO tribe_event_link([ $post = null], int $postId) I need this for use inside php

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #24341
    Sandro
    Participant

    Hi,

    tribe_event_link([ $post = null], int $postId) I need to get link to current event, but this function echoes it, I need it inside php, what do I do?

    ty.

    #24348
    Barry
    Member

    How about tribe_get_event_link()? It defaults to the current event in the loop – otherwise you can pass in the relevant $post object.


    $eventLink = tribe_get_event_link();

    #24355
    Sandro
    Participant

    Thanks, it worked perfectly!

    #24370
    Barry
    Member

    Great!

    #977651
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘tribe_event_link([ $post = null], int $postId) I need this for use inside php’ is closed to new replies.