File "Tribe__Events__Importer__Plugin.php"
Full Path: /home/londdqdw/public_html/06/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Importer__Plugin.php
File size: 1.01 KB
MIME-type: text/x-php
Charset: utf-8
<?php
_deprecated_file( __FILE__, '4.5', 'CSV Import settings moved to Event Aggregator' );
/**
* Class Tribe__Events__Importer__Plugin
*/
class Tribe__Events__Importer__Plugin {
private static $plugin_basename = '';
/** @var Tribe__Events__Importer__Admin_Page */
public static $admin = null;
public static function path( $path ) {
$base = dirname( dirname( dirname( dirname( __FILE__ ) ) ) );
$path = $base . DIRECTORY_SEPARATOR . $path;
return untrailingslashit( $path );
}
public static function set_plugin_basename( $basename ) {
self::$plugin_basename = $basename;
}
public static function initialize_admin() {
self::$admin = new Tribe__Events__Importer__Admin_Page();
add_action( 'admin_menu', [ self::$admin, 'register_admin_page' ] );
add_action( 'load-tribe_events_page_events-importer', [ self::$admin, 'handle_submission' ] );
add_filter( 'tribe_import_general_settings', [ self::$admin, 'add_settings_fields' ] );
}
public static function get_admin_object() {
return self::$admin;
}
}