Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-content/plugins/reviewx/vendor/wpdrill/core/src/Providers/CommonServiceProvider.php
Назад
<?php namespace Rvx\WPDrill\Providers; use Rvx\WPDrill\Facades\Config; use Rvx\WPDrill\ServiceProvider; class CommonServiceProvider extends ServiceProvider { public function register() : void { } public function boot() : void { $postTypes = Config::get('post-types', []); $this->registerPostTypes($postTypes); } protected function registerPostTypes(array $postTypes) : void { foreach ($postTypes as $type => $config) { $cpt = function () use($type, $config) { register_post_type($type, $config); }; add_action('init', $cpt); } } }
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка