Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Pantheon
Terminus
Commands
Remote
WPCommand
PHP Class Pantheon\Terminus\Commands\Remote\WPCommand
Inheritance:
extends
SSHBaseCommand
Show file
Open project: pantheon-systems/terminus
Protected Properties
Property
Type
Description
$command
$unavailable_commands
$valid_frameworks
Public Methods
Method
Description
wpCommand
(
string
$site_env_id
,
array
$wp_command
) :
string
Run an arbitrary WP-CLI commands on a site's environment
Method Details
wpCommand()
public
method
Run an arbitrary WP-CLI commands on a site's environment
public
wpCommand
(
string
$site_env_id
,
array
$wp_command
) :
string
$site_env_id
string
Name of the environment to run the WP-CLI command on.
$wp_command
array
WP-CLI command to invoke on the environment
return
string
Output of the given WP-CLI command executed on the site environment
Property Details
$command
protected property
protected
$command
$unavailable_commands
protected property
protected
$unavailable_commands
$valid_frameworks
protected property
protected
$valid_frameworks