Execute some PHP on event publish

Home Forums Calendar Products Community Events Execute some PHP on event publish

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1127760
    DEMETRIO BERNAL
    Participant

    Hello,

    wrote this issue because not find any example of how to run my PHP code (to send a notification to the mobile phone), when a new event is published.

    I tried to add some ‘hook’ but I could not find anything that runs only when published …

    I hope you can help me.

    Thank you,

    Miguel Pérez.

    #1127803
    Nico
    Member

    Hola Miguel, como estas?

    Gracias por ponerte en contacto con nosotros 🙂

    Hay dos acciones que podes usar para este fin: tribe_events_event_save (params: $event_id) y tribe_events_update_meta (params: $event_id, $data ). Básicamente usando add_action podes agregar el código para enviar las notificaciones.

    Si necesitas algo más o tenes dudas avisame!

    Saludos,
    Nico

    #1134497
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Execute some PHP on event publish’ is closed to new replies.