HEX
Server: Apache/2
System: Linux server-80-13-140-150.da.direct 5.14.0-362.24.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 22:31:43 UTC 2024 x86_64
User: cpt (1004)
PHP: 8.1.24
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/cpt/public_html/wp-content/plugins/events-manager/buddypress/screens/my-bookings.php
<?php
/**
 * bp_em_screen_two()
 *
 * Sets up and displays the screen output for the sub nav item "em/screen-two"
 */
function bp_em_my_bookings() {
	global $bp, $EM_Event;
	
	//assume any notifications here are considered viewed via this page
	if( function_exists('bp_notifications_delete_notifications_by_type') ){
		bp_notifications_delete_notifications_by_type(get_current_user_id(), 'events','pending_booking');
		bp_notifications_delete_notifications_by_type(get_current_user_id(), 'events','confirmed_booking');
		bp_notifications_delete_notifications_by_type(get_current_user_id(), 'events','cancelled_booking');
	}
	
	em_load_event();
	/**
	 * If the user has not Accepted or Rejected anything, then the code above will not run,
	 * we can continue and load the template.
	 */
	do_action( 'bp_em_my_bookings' );

	add_action( 'bp_template_title', 'bp_em_my_bookings_title' );
	add_action( 'bp_template_content', 'bp_em_my_bookings_content' );

	/* Finally load the plugin template file. */
	bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}

function bp_em_my_bookings_title() {
	_e( 'My Event Bookings', 'events-manager');
}

function bp_em_my_bookings_content() {
	em_locate_template('buddypress/my-bookings.php',true);
}