Title: WordPress Rest Api
Last modified: April 9, 2020

---

# WordPress Rest Api

 *  Resolved [Mike](https://wordpress.org/support/users/mike314156/)
 * (@mike314156)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/wordpress-rest-api-6/)
 * Hello,
 * By default does this plugin make a custom post type for each event that can be
   loaded via the wordpress rest api?
 * If not, is there a easy way to add it on a site?
 * If I load the page that the shortcode is on via the normal api, it just give 
   me a string of words.
 * Example: “All Event Tags youth worship worship practice community community service
   service chili sunday sunday service ministry children Iglesia Refugio de Salvacion
   morning prayer prayer morning breakfast men distinct team marriage night youth
   group cuba mission trip mission trip discover class Distinct Men Conference Conference
   Mens Conference Activate”
 * – thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-rest-api-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-rest-api-6/#post-12669763)
 * This might be possible but it might require custom coding on your part to make
   this work.
 * e.g. you can try to hook into em_event_save filter – [https://pastebin.com/qj3vTArq](https://pastebin.com/qj3vTArq)
 * As for where to paste custom snippet – [http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/](http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/)
 *  [tintedshadows](https://wordpress.org/support/users/tintedshadows/)
 * (@tintedshadows)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-rest-api-6/#post-12672965)
 * Okay thanks for the info.
 * I ended up using the register_post_type_arg hook instead. It seemed to work out
   perfectly but thanks for the info!
 * function add_events_to_rest( $args, $post_type ) {
 *  if ( ‘event’ === $post_type ) {
    $args[‘show_in_rest’] = true; }
 *  return $args;
    }
 * add_filter( ‘register_post_type_args’, ‘add_events_to_rest’, 10, 2 );

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

The topic ‘WordPress Rest Api’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [WordPress REST API](https://wordpress.org/support/topic-tag/wordpress-rest-api/)

 * 2 replies
 * 3 participants
 * Last reply from: [tintedshadows](https://wordpress.org/support/users/tintedshadows/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-rest-api-6/#post-12672965)
 * Status: resolved