Service_Provider
Conditional Content Provider.
Source
File: src/Tribe/Admin/Conditional_Content/Service_Provider.php
class Service_Provider extends \tad_DI52_ServiceProvider { /** * Registers the required objects and filters. * * @since 4.14.7 */ public function register() { $this->container->singleton( Black_Friday::class, Black_Friday::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 ); } }
Changelog
Version | Description |
---|---|
4.14.7 | Introduced. |
Methods
- plugins_loaded — Setup for things that require plugins loaded first.
- register — Registers the required objects and filters.