Title: Accessing data via PHP
Last modified: August 21, 2016

---

# Accessing data via PHP

 *  Resolved [GreyhoundXX](https://wordpress.org/support/users/greyhoundxx/)
 * (@greyhoundxx)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/accessing-data-via-php/)
 * Is there an easy way to get the event data via PHP? I want to customize the output
   more and also set a conditional header, “Upcoming Events”, that only shows if
   there are any events to display.
 * [http://wordpress.org/extend/plugins/really-simple-events/](http://wordpress.org/extend/plugins/really-simple-events/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [huntlyc](https://wordpress.org/support/users/huntlyc/)
 * (@huntlyc)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/accessing-data-via-php/#post-3942599)
 * Sure, you can get a list of events from this function: `hc_rse_get_events($listType,
   $showEvents)`
 * You’ll want to supply the `$listType` variable, take a look at the function source
   code (It’s not very complicated, honest)! [http://plugins.trac.wordpress.org/browser/really-simple-events/trunk/really-simple-events.php#L441](http://plugins.trac.wordpress.org/browser/really-simple-events/trunk/really-simple-events.php#L441)
 * You’ll want to `var_dump()` the output and see what you’re dealing with… If you’re
   going down this route, then in your theme or whatever, you’ll probably want to
   get rid of my java script and css. That’s easy enough to do, you just need to
   add these lines:
    `wp_dequeue_script(‘hc_rse_js’); wp_dequeue_style(‘hc_rse_styles’);’
 *  Thread Starter [GreyhoundXX](https://wordpress.org/support/users/greyhoundxx/)
 * (@greyhoundxx)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/accessing-data-via-php/#post-3942613)
 * Thanks, I just copied lines 161 – 200 from that file into my PHP file and edited
   as necessary. Very easy!
 *  Plugin Author [huntlyc](https://wordpress.org/support/users/huntlyc/)
 * (@huntlyc)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/accessing-data-via-php/#post-3942614)
 * Nice one! If you need anything else, just give us a shout…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Accessing data via PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/really-simple-events_3f3e36.svg)
 * [Really Simple Events](https://wordpress.org/plugins/really-simple-events/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-events/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-events/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-events/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-events/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-events/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [huntlyc](https://wordpress.org/support/users/huntlyc/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/accessing-data-via-php/#post-3942614)
 * Status: resolved