Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
06
/
wp-content
/
plugins
/
the-events-calendar
/
common
/
src
/
Tribe
/
Admin
/
Conditional_Content
:
Service_Provider.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Handles admin conditional content. * * @since 4.14.7 * @package Tribe\Admin\Conditional_Content; */ namespace Tribe\Admin\Conditional_Content; use TEC\Common\Contracts\Service_Provider as Provider_Contract; /** * Conditional Content Provider. * * @since 4.14.7 */ class Service_Provider extends Provider_Contract { /** * Registers the required objects and filters. * * @since 4.14.7 */ public function register() { $this->container->singleton( Black_Friday::class, Black_Friday::class, [ 'hook' ] ); // EOY Sale disabled for 2022 // $this->container->singleton( End_Of_Year_Sale::class, End_Of_Year_Sale::class, [ 'hook' ] ); $this->hooks(); } /** * Set up hooks for classes. * * @since 4.14.7 */ protected function hooks() { add_action( 'tribe_plugins_loaded', [ $this, 'plugins_loaded' ] ); } /** * Setup for things that require plugins loaded first. * * @since 4.14.7 */ public function plugins_loaded() { $this->container->make( Black_Friday::class ); // EOY Sale disabled for 2022 // $this->container->make( End_Of_Year_Sale::class ); } }