Viewing 5 replies - 1 through 5 (of 5 total)
  • Roch

    (@rochesterj)

    Hi!

    Thanks for getting in touch!

    I’ve just send this to our dev tema so they can check ??

    Kind Regards,
    -Roch

    Thread Starter sagund07

    (@sagund07)

    After some testing with the rest api plugin i can conclude that there must be an error with the sp_event capabilities for future events because in the rest api plugin the following if clause does not return true.

    current_user_can( $post_type->cap->read_post, $post->ID )

    Thread Starter sagund07

    (@sagund07)

    I also noted that the future events are not listed on the rest api events page

    https://eishockey-arena.de/wp-json/sportspress/v2/events

    Roch

    (@rochesterj)

    Hi!

    Thank you for your message!

    I’ve sent this to our dev team and this may be an issue with the latest SP release. What happens when you roll back to the previous version?

    Kind Regards,
    -Roch

    Thread Starter sagund07

    (@sagund07)

    Hi,

    I guess that this is already fixed on github. I was not able to try the fix yet but I will do this in a few minutes.

    I am not sure if the events were missing before one of the latest patches, could be, but I cannot remember if I tried to query them before.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘REST API: Future events’ is closed to new replies.