WordPress.org

Forums

Events Manager
[resolved] Access 'Event Meta' postbox (2 posts)

  1. Yash
    Member
    Posted 2 years ago #

    Guys,
    I was wondering if there is a way to access the data inside the 'Event Meta' postbox for an event.
    I wanted to access the '[event_owner_anonymous]', '[event_owner_name]' and '[event_owner_email]' as well as '[event_name]', '[event_start_date]' and '[event_end_date]' fields.

    I've tried to extract the wp_em_events table but could not find this 'event meta' data inside it. The wp_em_meta table is also empty.

    Do you guys think it's possible to access this meta data?

    Any help would be much appreciated.
    Thanks!

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    you might found answers here
    - http://wp-events-plugin.com/tutorials/
    - http://wp-events-plugin.com/documentation/

    some useful links with sample snippet
    http://wordpress.org/support/topic/plugin-events-manager-display-attendees-in-a-page?replies=38

    also, try this snippet (paste in your theme functions.php)

    add_filter('em_event_output_placeholder','my_em_get_anonymous_name',1,3);
    function my_em_get_anonymous_name($replace, $EM_Event, $result){
    	global $wp_query, $wp_rewrite;
    	switch( $result ){
    		case '#_ANONYMOUSNAME':
    			$replace = $EM_Event->event_owner_name;
    			break;
    	}
    	return $replace;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic