WP_CLI\Bootstrap

DeclareFallbackFunctions{}WP-CLI 1.0

Class DeclareFallbackFunctions.

Declares functions that might have been disabled but are required.

Хуков нет.

Использование

$DeclareFallbackFunctions = new DeclareFallbackFunctions();
// use class methods

Методы

  1. public process( BootstrapState $state )

Заметки

  • Пакет: WP_CLI\Bootstrap

Код 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;
	}
}