File Editor
Directories:
.. (Back)
Admin
Aggregator
Ajax
Collections
Customizer
Dates
Editor
Event_Status
Event_Tickets
Featured_Events
Google
Importer
Integrations
JSON_LD
Linked_Posts
Meta
Models
REST
Repositories
Revisions
Service_Providers
Shortcode
Taxonomy
Template
Utils
Validator
Views
Files:
API.php
Adjacent_Events.php
Admin_List.php
Aggregator.php
Amalgamator.php
Assets.php
Capabilities.php
Constants.php
Cost_Utils.php
Deactivation.php
Default_Values.php
Editor.php
Embedded_Maps.php
Event_Cleaner.php
Event_Cleaner_Scheduler.php
Featured_Events.php
Front_Page_View.php
Gutenberg.php
I18n.php
Ignored_Events.php
Linked_Posts.php
Main.php
Options_Exception.php
Organizer.php
Plugin_Register.php
Post_Exception.php
Privacy.php
Query.php
Rewrite.php
Template_Factory.php
Templates.php
Timezones.php
Updater.php
Venue.php
iCal.php
Create New File
Create
Edit File: Options_Exception.php
<?php // Don't load directly if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * Exception handling for third-party plugins dealing with the WordPress options view. */ if ( ! class_exists( 'Tribe__Events__Options_Exception' ) ) { class Tribe__Events__Options_Exception extends Exception { /** * Display the exception message in the div #tribe-events-options-error */ public static function displayMessage() { $eventsOptions = get_option( Tribe__Events__Main::OPTIONNAME, [] ); if ( isset( $eventsOptions['error'] ) && $eventsOptions['error'] ) : ?> <script>jQuery('#tribe-events-options-error').append('<h2><?php esc_html_e( 'Error', 'the-events-calendar' ); ?></h2><p>' + '<?php echo $eventsOptions['error']; ?>' + '</p>').show();</script> <?php endif; } } // end Tribe__Events__Options_Exception } // end if !class_exists Tribe__Events__Options_Exception
Save Changes
Rename File
Rename