WP_CLI\Bootstrap
DeclareFallbackFunctions{}
Class DeclareFallbackFunctions.
Declares functions that might have been disabled but are required.
Хуков нет.
Использование
$DeclareFallbackFunctions = new DeclareFallbackFunctions(); // use class methods
Методы
Заметки
- Пакет: WP_CLI\Bootstrap
Код DeclareFallbackFunctions{} DeclareFallbackFunctions{} WP-CLI 2.8.0-alpha
final class DeclareFallbackFunctions implements BootstrapStep { /** * Process this single bootstrapping step. * * @param BootstrapState $state Contextual state to pass into the step. * * @return BootstrapState Modified state to pass to the next step. */ public function process( BootstrapState $state ) { include __DIR__ . '/../../fallback-functions.php'; return $state; } }