Delete events

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 7 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27593

    Is there a way to delete an event on the front-end or do I need to write something custom for that?

    Brian Reeves
    #27595

    Hi Brian,

    That’s something you’ll need to implement. This article might be helpful in doing that: https://code.tutsplus.com/articles/capabilities-and-nonces–wp-25827. As an additinonal check I’d recommend:

    if ( get_post_type( get_the_ID() ) !== 'event' ) {
       //don't delete
    }
    
    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.