Файловый менеджер - Редактировать - /var/www/portal.bdu.ac.bd/public_html/wp-content/plugins/the-events-calendar/src/Events/Blocks/Controller.php
Назад
<?php namespace TEC\Events\Blocks; use TEC\Events\Editor\Full_Site\Archive_Block_Template; use TEC\Events\Editor\Full_Site\Single_Block_Template; use TEC\Common\Contracts\Provider\Controller as Controller_Contract; /** * Class Controller * * @since 6.2.7 * * @package TEC\Events\Blocks */ class Controller extends Controller_Contract { /** * Register the provider. * * @since 6.2.7 */ public function do_register(): void { $this->add_actions(); // Register the service provider itself on the container. $this->container->singleton( static::class, $this ); } /** * Unhooks actions and filters. */ public function unregister(): void { $this->remove_actions(); } /** * Adds the actions required by the Blocks components. * * @since 6.2.7 */ protected function add_actions() { add_action( 'tribe_editor_register_blocks', [ $this, 'action_register_archive_template' ] ); add_action( 'tribe_editor_register_blocks', [ $this, 'action_register_single_event_template' ] ); } /** * Removes registered actions. * * @since 6.2.7 */ public function remove_actions() { remove_action( 'tribe_editor_register_blocks', [ $this, 'action_register_archive_template' ] ); remove_action( 'tribe_editor_register_blocks', [ $this, 'action_register_single_event_template' ] ); } /** * Registers the Events Archive template. * * @since 6.2.7 */ public function action_register_archive_template() { return $this->container->make( Archive_Block_Template::class )->register(); } /** * Registers the Single Event template. * * @since 6.2.7 */ public function action_register_single_event_template() { return $this->container->make( Single_Block_Template::class )->register(); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка