WP_CLI\Context

Frontend{}WP-CLI 1.0

Context which simulates a frontend request.

Хуков нет.

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

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

Методы

  1. public process( $config )

Код Frontend{} WP-CLI 2.8.0-alpha

final class Frontend implements Context {

	/**
	 * Process the context to set up the environment correctly.
	 *
	 * @param array $config Associative array of configuration data.
	 *
	 * @return void
	 */
	public function process( $config ) {
		// TODO: Frontend context needs to be simulated here.
	}
}