WP_CLI\Context
Frontend{}
Context which simulates a frontend request.
Хуков нет.
Использование
$Frontend = new Frontend(); // use class methods
Методы
- public process( $config )
Код Frontend{} 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. } }