Skip to content

Instantly share code, notes, and snippets.

@Beee4life
Last active October 3, 2017 15:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Beee4life/163edec7f000489c224277f914492972 to your computer and use it in GitHub Desktop.
Save Beee4life/163edec7f000489c224277f914492972 to your computer and use it in GitHub Desktop.
A list of all constants for the Wordpress plugin Events Manager

EM Constants

EM_VERSION

5.7 (currently)

EM_PRO_MIN_VERSION

2.392 (currently)

EM_PRO_MIN_VERSION_CRITICAL

2.377 (currently)

EM_DIR

dirname( FILE )

EM_DIR_URI

trailingslashit(plugins_url('',FILE))

EM_SLUG

plugin_basename( FILE )

EM_AJAX

get_option('dbem_events_page_ajax', (defined('EM_AJAX_SEARCH') && EM_AJAX_SEARCH)) )

EM_AJAX_SEARCH

EM_CONDITIONAL_RECURSIONS

default: get_option('dbem_conditional_recursions', 1 )

EM_MS_GLOBAL

set to true if( get_site_option('dbem_ms_global_table') && is_multisite() ) else false

EM_CATEGORIES_TABLE

$prefix.'em_categories'

EM_EVENTS_TABLE

$prefix.'em_events'

EM_TICKETS_TABLE

$prefix.'em_tickets'

EM_TICKETS_BOOKINGS_TABLE

$prefix.'em_tickets_bookings'

EM_META_TABLE

$prefix.'em_meta'

EM_RECURRENCE_TABLE

$prefix.'dbem_recurrence'

EM_LOCATIONS_TABLE

$prefix.'em_locations'

EM_BOOKINGS_TABLE

$prefix.'em_bookings'

EM_IMAGE_UPLOAD_DIR

$upload_dir['basedir']."/events-manager/" )

EM_IMAGE_UPLOAD_URI

$upload_dir['baseurl']."/events-manager/" )

EM_IMAGE_DS

- or /

EM_URI

If an event page is set: get_permalink(get_option("dbem_events_page"))

if archives are set with permalinks: trailingslashit(home_url()). EM_POST_TYPE_EVENT_SLUG.'/')

if archives are set without permalinks: trailingslashit(home_url()).'?post_type='.EM_POST_TYPE_EVENT)

EM_RSS_URI

$rss_url

EM_LOADED

true/false This constant is set in a function which will load an event into the global $EM_Event variable during page initialization

EMP_VERSION

PRO: version (if activated)

EMP_DISABLE_CRITICAL_WARNINGS

PRO: true/false

EM_DISABLE_AUTO_BOOKINGSFORM

If set to true, the bookingsform will not be added to the_content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment