WP Events Manager icon
Events & Booking

WP Events Manager hooks reference

  • By ThimPress
  • v2.2.5
  • Updated

WP Events Manager 2.2.5 has 47 actions and 88 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when WP Events Manager fires an action
add_action( 'tp_event_after_main_content', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value WP Events Manager is about to use
add_filter( 'tp_event_admin_menu', function( $_menus ) {
	// Change $_menus here.
	return $_menus;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • templates/archive-event.php line 81 · used in 3 places
    /**
     * tp_event_after_main_content hook
     */
    do_action( 'tp_event_after_main_content' );
  • templates/archive-event.php line 26 · used in 3 places
    /**
     * tp_event_before_main_content hook
     */
    do_action( 'tp_event_before_main_content' );
  • templates/archive-event.php line 70 · used in 2 places
    /**
     * tp_event_after_event_loop hook
     */
    do_action( 'tp_event_after_event_loop' );
  • templates/archive-event.php line 36 · used in 2 places
    /**
     * tp_event_archive_description hook
     */
    do_action( 'tp_event_archive_description' );
  • templates/archive-event.php line 48 · used in 2 places
    /**
     * tp_event_before_event_loop hook
     */
    do_action( 'tp_event_before_event_loop' );
  • templates/content-event.php line 54 · used in 2 places
    /**
     * tp_event_loop_event_count hook
     */
    do_action( 'tp_event_loop_event_countdown' );
  • templates/content-event.php line 64 · used in 2 places
    /**
     * tp_event_single_event_content hook
     */
    do_action( 'tp_event_single_event_content' );
  • templates/content-event.php line 49 · used in 2 places
    /**
     * tp_event_single_event_thumbnail hook
     */
    do_action( 'tp_event_single_event_thumbnail' );
  • templates/content-event.php line 59 · used in 2 places
    /**
     * tp_event_single_event_title hook
     */
    do_action( 'tp_event_single_event_title' );
  • templates/shortcodes/reset-password.php line 56
    /**
     * Fires following the 'Strength indicator' meter in the user password reset
     * form.
     */
    do_action( 'event_auth_resetpass_form', $atts['login'] );
  • inc/Admin/Menu.php line 49
    /**
     * Menus.
     */
    apply_filters( 'tp_event_admin_menu', $this->_menus );
  • inc/class-wpems-assets.php line 113
    /**
     * After enqueue scripts
     */
    do_action( 'tp_event_after_enqueue_scripts', $hook );
  • templates/content-event.php line 76
    /**
     * tp_event_after_loop_event_item hook
     */
    do_action( 'tp_event_after_loop_event_item' );
  • templates/content-single-event.php line 64
    /**
     * tp_event_after_single_event hook
     */
    do_action( 'tp_event_after_single_event' );
  • inc/class-wpems-assets.php line 88
    /**
     * Before enqueue scripts
     */
    do_action( 'tp_event_before_enqueue_scripts', $hook );
  • templates/content-event.php line 22
    /**
     * tp_event_before_loop_event hook
     */
    do_action( 'tp_event_before_loop_event' );
  • templates/content-event.php line 39
    /**
     * tp_event_before_loop_event_summary hook
     */
    do_action( 'tp_event_before_loop_event_item' );
  • templates/content-single-event.php line 24
    /**
     * tp_event_before_single_event hook
     */
    do_action( 'tp_event_before_single_event' );
  • templates/shortcodes/forgot-password.php line 38
    /**
     * Fires inside the lostpassword form tags, before the hidden fields.
     */
    do_action( 'tp_event_forgot_password_form' );
  • templates/content-single-event.php line 53
    /**
     * tp_event_loop_event_location hook
     */
    do_action( 'tp_event_loop_event_location' );
  • templates/archive-event.php line 90
    /**
     * tp_event_sidebar hook
     */
    do_action( 'tp_event_sidebar' );
  • inc/Admin/Settings/AbstractSetting.php line 49 · used in 5 places
    apply_filters( "event_admin_setting_page_{$this->id}", array() );
  • inc/Admin/Settings/General.php line 72 · used in 5 places
    apply_filters( 'tp_event_currency_setting_fields_class', '' );
  • inc/class-wpems-user-process.php line 215 · used in 2 places
    apply_filters( 'event_auth_ajax_login_redirect', $redirect );
  • inc/class-wpems-event.php line 192 · used in 2 places
    apply_filters( 'event_auth_booked_quanity', (int) $wpdb->get_var( $query ) );
  • templates/shortcodes/form-login.php line 33 · used in 2 places
    do_action( 'event_auth_register_form' );
  • inc/class-wpems-event.php line 123 · used in 2 places
    apply_filters( 'event_registered_time', count( $this->load_registered() ) );
  • inc/class-wpems-event.php line 114 · used in 2 places
    apply_filters( 'event_slot_available', (int) $this->qty - $this->booked_quantity() );
  • inc/wpems-core-functions.php line 182 · used in 2 places
    do_action( 'tp_event_after_template_part', $template_name, $template_path, $located, $args );
  • inc/wpems-core-functions.php line 178 · used in 2 places
    do_action( 'tp_event_before_template_part', $template_name, $template_path, $located, $args );
  • inc/class-wpems-booking.php line 88 · used in 2 places
    do_action( 'tp_event_create_new_booking', $booking_id, $args );
  • inc/gateways/paypal/class-wpems-payment-gateway-paypal.php line 70 · used in 2 places
    apply_filters( 'tp_event_enable_paypal_payment', self::$enable );
  • inc/gateways/paypal/class-wpems-payment-gateway-paypal.php line 231 · used in 2 places
    apply_filters( 'tp_event_filter_enable_paypal_gateway', '' );
  • inc/gateways/paypal/class-wpems-payment-gateway-paypal.php line 217 · used in 2 places
    apply_filters( 'tp_event_paypal_admin_fields', array( array( 'type' => 'section_start', 'id' => 'paypal_settings', 'title' => __( 'Paypal Settings', 'wp-events-manager' ), 'desc' => esc_html__( 'Make payment via Paypal', 'wp-events-manager' ), ), array( 'type' => 'yes_no', 'title' => __( 'Enable', 'wp-events-manager' ), 'id' => $prefix . 'paypal_enable', 'default' => 'no', 'desc' => apply_filters( 'tp_event_filter_enable_paypal_gateway', ''... );
  • inc/gateways/paypal/class-wpems-payment-gateway-paypal.php line 351 · used in 2 places
    apply_filters( 'tp_event_paypal_payment_params', $query );
  • inc/class-wpems-booking.php line 116 · used in 2 places
    do_action( 'tp_event_updated_status', $id, $old_status, $status );
  • inc/class-wpems-booking.php line 118 · used in 2 places
    do_action( "tp_event_updated_status_{$old_status}_{$status}", $id, $old_status, $status );
  • inc/Admin/SettingsManager.php line 216
    do_action( "event_admin_setting_{$current_tab}" );
  • inc/Admin/Settings/AbstractSetting.php line 58
    apply_filters( "event_admin_setting_page_{$this->id}_section", array() );
  • inc/Admin/SettingsManager.php line 84
    apply_filters( 'event_admin_setting_pages', array( new General(), new Pages(), new Emails(), new Checkout(), ) );
  • inc/Admin/SettingsManager.php line 214
    do_action( "event_admin_setting_sections_{$current_tab}" );
  • inc/Admin/SettingsManager.php line 169
    do_action( 'event_admin_setting_update', $current_tab );
  • inc/Admin/SettingsManager.php line 168
    do_action( "event_admin_setting_update_{$current_tab}" );
  • inc/Admin/SettingsManager.php line 191
    apply_filters( 'event_admin_settings_tabs_array', array() );
  • inc/Admin/SettingsManager.php line 172
    do_action( 'event_admin_settings_updated', wp_unslash( $_POST ), self::get_posted_settings( $_POST ) );
  • inc/class-wpems-post-types.php line 149
    apply_filters( 'event_auth_book_args', $args );
  • inc/wpems-core-functions.php line 710
    apply_filters( 'event_auth_create_page_id', $valid_page_found, $slug, $page_content );
  • inc/class-wpems-user-process.php line 179
    apply_filters( 'event_auth_get_username_from_email', true );
  • inc/class-wpems-user-process.php line 196
    apply_filters( 'event_auth_login_credentials', $creds );
  • inc/class-wpems-user-process.php line 210
    apply_filters( 'event_auth_login_redirect', $redirect, $user );
  • inc/class-wpems-user-process.php line 165
    apply_filters( 'event_auth_process_login_errors', $validation_error, $username, $password );
  • inc/class-wpems-ajax.php line 222
    apply_filters( 'event_auth_register_ajax_result', array( 'status' => true, 'url' => wpems_account_url(), ) );
  • inc/class-wpems-post-types.php line 253
    apply_filters( 'event_auth_register_status_cancelled', array( 'label' => _x( 'Cancelled', 'Booking status', 'wp-events-manager' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Cancelled <span class="count">(%s)</span>', 'Cancelled <span class="count">(%s)</span>' ), ) );
  • inc/class-wpems-post-types.php line 298
    apply_filters( 'event_auth_register_status_completed', array( 'label' => _x( 'Completed', 'Booking status', 'wp-events-manager' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Completed <span class="count">(%s)</span>', 'Completed <span class="count">(%s)</span>' ), ) );
  • inc/class-wpems-post-types.php line 268
    apply_filters( 'event_auth_register_status_pending', array( 'label' => _x( 'Pending', 'Booking status', 'wp-events-manager' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Pending <span class="count">(%s)</span>', 'Pending <span class="count">(%s)</span>' ), ) );
  • inc/class-wpems-post-types.php line 283
    apply_filters( 'event_auth_register_status_processing', array( 'label' => _x( 'Processing', 'Booking status', 'wp-events-manager' ), 'public' => true, 'exclude_from_search' => false, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true, 'label_count' => _n_noop( 'Processing <span class="count">(%s)</span>', 'Processing <span class="count">(%s)</span>' ), ) );
  • inc/class-wpems-user-process.php line 78
    apply_filters( 'event_auth_user_process_register_data', array( 'username' => $username, 'email' => $email, 'password' => $password, 'confirm_password' => $password1, ) );
  • inc/abstracts/class-wpems-abstract-payment-gateway.php line 46
    apply_filters( 'event_payment_title', $this->title, $this->id );
  • inc/Models/UserModel.php line 204
    apply_filters( 'get_the_author_display_name', $this->display_name, $this->get_id(), $this->get_id() );
  • plugin_locale

    filter
    wp-events-manager.php line 175
    apply_filters( 'plugin_locale', get_locale(), $text_domain );
  • the_content

    filter
    inc/Models/PostModel.php line 456
    apply_filters( 'the_content', $content );
  • inc/wpems-core-functions.php line 611
    apply_filters( 'thimpress_event_l18n', array( 'gmt_offset' => esc_js( get_option( 'gmt_offset' ) ), 'current_time' => esc_js( date( 'M j, Y H:i:s O', strtotime( current_time( 'Y-m-d H:i' ) ) ) ), 'l18n' => array( 'labels' => array( __( 'Years', 'wp-events-manager' ), __( 'Months', 'wp-events-manager' ), __( 'Weeks', 'wp-events-manager' ), __( 'Days', 'wp-events-manager' ), __( 'Hours', 'wp-events-manager' ), __( 'Minutes', 'wp-event... );
  • inc/class-wpems-install.php line 151
    apply_filters( 'tp_event_account_shortcode_tag', 'wp_event_account' );
  • inc/wpems-core-functions.php line 931
    apply_filters( 'tp_event_add_message', $message );
  • inc/wpems-core-functions.php line 937
    apply_filters( "tp_event_add_message_{$type}", $message );
  • templates/admin/metaboxes/booking-details.php line 90
    do_action( 'tp_event_admin_booking_metabox_after_fields', $post, $prefix );
  • templates/admin/metaboxes/booking-details.php line 31
    do_action( 'tp_event_admin_booking_metabox_before_fields', $post, $prefix );
  • templates/admin/metaboxes/event-settings.php line 132
    do_action( 'tp_event_admin_event_metabox_after_fields', $post, $prefix );
  • templates/admin/metaboxes/event-settings.php line 37
    do_action( 'tp_event_admin_event_metabox_before_fields', $post, $prefix );
  • inc/wpems-core-functions.php line 1497
    apply_filters( 'tp_event_admin_event_tab_info', array( 10 => array( 'link' => 'edit.php?post_type=tp_event', 'name' => __( 'Events', 'wp-events-manager' ), 'id' => 'edit-tp_event', ), 20 => array( 'link' => 'edit-tags.php?taxonomy=tp_event_category&post_type=tp_event', 'name' => __( 'Categories', 'wp-events-manager' ), 'id' => 'edit-tp_event_category', ), 30 => array( 'link' => 'edit-tags.php?taxonomy=tp_event_tag&post_type=tp_event', 'name'... );
  • templates/admin/settings/section-end.php line 16
    do_action( "tp_event_after_{$field['id']}_after" );
  • templates/content-event.php line 81
    do_action( 'tp_event_after_loop_event' );
  • templates/admin/settings/section-start.php line 20
    do_action( "tp_event_before_{$field['id']}_fields" );
  • inc/class-wpems-ajax.php line 177
    apply_filters( 'tp_event_create_booking_args', array( 'event_id' => $event_id, 'qty' => $qty, 'price' => (float) $event->get_price() * $qty, 'payment_id' => $payment, 'currency' => wpems_get_currency(), ) );
  • inc/wpems-core-functions.php line 1367
    do_action( 'tp_event_create_new_user', $user_id, $userdata );
  • inc/wpems-core-functions.php line 1348
    apply_filters( 'tp_event_create_new_user_data', array( 'user_login' => $username, 'user_email' => $email, 'user_pass' => $password, ) );
  • inc/wpems-core-functions.php line 1144
    apply_filters( 'tp_event_currency_symbol', $currency_symbol, $currency );
  • inc/wpems-core-functions.php line 487
    apply_filters( 'tp_event_filter_event_location_map', array( 'height' => '300px', 'width' => '100%', 'map_id' => md5( wpems_event_location() ), 'map_data' => array( 'address' => wpems_event_location(), 'zoom' => 14, 'scroll-zoom' => true, 'draggable' => false, 'api-key' => wpems_get_option( 'google_map_api_key' ), 'marker-icon' => apply_filters( 'tp-event-map-marker', WPEMS_ASSETS_URI . 'images/map-marker.png' ), 'marker-at-center' => true, ), ) );
  • inc/class-wpems-install.php line 141
    apply_filters( 'tp_event_forgot_password_shortcode_tag', 'wp_event_forgot_password' );
  • inc/wpems-core-functions.php line 830
    apply_filters( 'tp_event_forgot_password_url', $url );
  • inc/wpems-core-functions.php line 946
    apply_filters( 'tp_event_get_currency', wpems_get_option( 'currency', 'USD' ) );
  • inc/wpems-core-functions.php line 763
    apply_filters( 'tp_event_get_page_id', wpems_get_option( $prefix . $name . '_page_id' ) );
  • inc/wpems-core-functions.php line 1725
    apply_filters( 'tp_event_get_template', $located, $template_name, $args, $template_path, $default_path );
  • inc/wpems-core-functions.php line 1780
    apply_filters( 'tp_event_locate_template', $template, $template_name, $template_path );
  • inc/class-wpems-install.php line 136
    apply_filters( 'tp_event_login_shortcode_tag', 'wp_event_login' );
  • inc/wpems-core-functions.php line 806
    apply_filters( 'tp_event_login_url', $url );
  • templates/pagination.php line 27
    apply_filters( 'tp_event_pagination_args', array( 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ), 'format' => '', 'add_args' => '', 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $wp_query->max_num_pages, 'prev_text' => __( '<', 'wp-events-manager' ), 'next_text' => __( '>', 'wp-events-manager' ), 'type' => 'list', 'end_size' => 3, 'mid_size' => 3, ) );
  • inc/wpems-core-functions.php line 1190
    apply_filters( 'tp_event_price_format', $price_format, $price, $with_currency );
  • inc/wpems-core-functions.php line 1158
    apply_filters( 'tp_event_price_switcher', $price );
  • inc/Admin/Metaboxes.php line 112
    do_action( "tp_event_process_update_{$post_type}_meta", $post_id, wp_unslash( $_POST ) );
  • inc/wpems-core-functions.php line 1343
    apply_filters( 'tp_event_register_errors', $errors, $username, $email, $password );
  • inc/class-wpems-ajax.php line 198
    do_action( 'tp_event_register_event_action', $args );
  • inc/class-wpems-post-types.php line 101
    apply_filters( 'tp_event_register_event_post_type_args', $args );
  • inc/class-wpems-install.php line 131
    apply_filters( 'tp_event_register_shortcode_tag', 'wp_event_register' );
  • inc/wpems-core-functions.php line 818
    apply_filters( 'tp_event_register_url', $url );
  • inc/class-wpems-install.php line 146
    apply_filters( 'tp_event_reset_password_shortcode_tag', 'wp_event_reset_password' );
  • inc/wpems-core-functions.php line 843
    apply_filters( 'tp_event_reset_password_url', $url );
  • inc/Admin/SettingsManager.php line 289
    do_action( "tp_event_setting_field_{$field['id']}", $field );
  • inc/Settings.php line 59
    apply_filters( 'tp_event_settings_field', array() );
  • inc/class-wpems-shortcodes.php line 110
    do_action( 'tp_event_shortcode_wrapper_end', $shortcode );
  • inc/class-wpems-shortcodes.php line 108
    do_action( 'tp_event_shortcode_wrapper_start', $shortcode );
  • inc/wpems-core-functions.php line 1744
    apply_filters( 'tp_event_template_path', 'wp-events-manager' );
  • inc/Widgets/WidgetCountdown.php line 96
    apply_filters( 'tp_event_widget_countdown', $status );
  • templates/loop/pagination.php line 32
    apply_filters( 'tp_events_pagination_args', array( 'base' => esc_url_raw( str_replace( 999999999, '%#%', get_pagenum_link( 999999999, false ) ) ), 'format' => '', 'add_args' => '', 'current' => max( 1, get_query_var( 'paged' ) ), 'total' => $wp_query->max_num_pages, 'prev_text' => __( 'Previous', 'wp-events-manager' ), 'next_text' => __( 'Next', 'wp-events-manager' ), 'type' => 'list', 'end_size' => 3, 'mid_size' => 3, ) );
  • inc/wpems-core-functions.php line 1528
    apply_filters( 'tp-event_admin_tabs_on_pages', array( 'edit-tp_event', 'edit-tp_event_category', 'edit-tp_event_tag', 'edit-tp_event_type', 'tp_event', ) );
  • inc/wpems-core-functions.php line 499
    apply_filters( 'tp-event-map-marker', WPEMS_ASSETS_URI . 'images/map-marker.png' );
  • widget_title

    filter
    inc/Widgets/WidgetCountdown.php line 23
    apply_filters( 'widget_title', $instance['title'] );
  • inc/class-wpems-shortcodes.php line 43
    apply_filters( "wp_event_{$shortcode}_shortcode_tag", 'wp_event_' . $shortcode );
  • inc/ShortCodes/AbstractShortcode.php line 90
    apply_filters( "wp_event_{$this->shortcode_name}_shortcode_tag", $this->prefix . $this->shortcode_name );
  • inc/wpems-core-functions.php line 855
    apply_filters( 'wpems_account_url', $url );
  • inc/wpems-core-functions.php line 200
    apply_filters( 'wpems_admin_template_path', trailingslashit( wpems_template_path() ) . 'admin' );
  • inc/wpems-core-functions.php line 1006
    apply_filters( 'wpems_currencies', $currencies );
  • inc/wpems-core-functions.php line 1269
    apply_filters( 'wpems_get_payment_status', array( 'ea-cancelled' => sprintf( __( '<span class="event_booking_status cancelled">%s</span>', 'wp-events-manager' ), __( 'Cancelled', 'wp-events-manager' ) ), 'ea-pending' => sprintf( __( '<span class="event_booking_status pending">%s</span>', 'wp-events-manager' ), __( 'Pending', 'wp-events-manager' ) ), 'ea-processing' => sprintf( __( '<span class="event_booking_status processing">%s</span>... );
  • inc/wpems-core-functions.php line 170
    apply_filters( 'wpems_get_template', $located, $template_name, $args, $template_path, $default_path );
  • inc/wpems-core-functions.php line 280
    apply_filters( 'wpems_get_template_part', $template, $slug, $name );
  • wpems_init

    action
    wp-events-manager.php line 83
    do_action( 'wpems_init', $this );
  • inc/wpems-core-functions.php line 332
    apply_filters( 'wpems_locate_template', $template, $template_name, $template_path );
  • inc/class-wpems-payment-gateways.php line 48
    apply_filters( 'wpems_payment_gateways', $gateways );
  • inc/wpems-core-functions.php line 189
    apply_filters( 'wpems_template_path', 'wp-events-manager' );
  • wp-events-manager.php line 117
    do_action( 'wpems-plugin-ready' );
  • inc/Databases/EventDB.php line 251
    apply_filters( 'wpems/event/booked_quantity/filter', $filter );
  • inc/Databases/EventDB.php line 145
    apply_filters( 'wpems/event/query/filter', $filter );
  • inc/Databases/EventDB.php line 187
    apply_filters( 'wpems/event/registered_bookings/filter', $filter );
  • inc/Databases/PostDB.php line 113
    apply_filters( 'wpems/post/query/filter', $filter );
  • inc/Databases/DataBase.php line 442
    apply_filters( 'wpems/query/delete/inner_join', $inner_join, $filter );
  • inc/Databases/DataBase.php line 438
    apply_filters( 'wpems/query/delete/where', $where, $filter );
  • inc/Databases/DataBase.php line 316
    apply_filters( 'wpems/query/fields', $fields, $filter );
  • inc/Databases/DataBase.php line 329
    apply_filters( 'wpems/query/group_by', $group_by, $filter );
  • inc/Databases/DataBase.php line 319
    apply_filters( 'wpems/query/inner_join', $inner_join, $filter );
  • inc/Databases/DataBase.php line 340
    apply_filters( 'wpems/query/order_by', $order_by, $filter );
  • inc/Databases/DataBase.php line 410
    apply_filters( 'wpems/query/update/set', $filter->set, $filter );
  • inc/Databases/DataBase.php line 415
    apply_filters( 'wpems/query/update/where', $where, $filter );
  • inc/Databases/DataBase.php line 323
    apply_filters( 'wpems/query/where', $where, $filter );
  • inc/Databases/UserDB.php line 99
    apply_filters( 'wpems/user/query/filter', $filter );

Generated from WP Events Manager's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: