Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Eval_Command
PHP Class Eval_Command, wp-cli
Inheritance:
extends
WP_CLI_Command
Afficher le fichier
Open project: wp-cli/wp-cli
Méthodes publiques
Méthode
Description
__invoke
(
$args
,
$assoc_args
)
Execute arbitrary PHP code.
Method Details
__invoke()
public
méthode
## OPTIONS
: The code to execute, as a string. [--skip-wordpress] : Execute code without loading WordPress. ## EXAMPLES # Display WordPress content directory. $ wp eval 'echo WP_CONTENT_DIR;' var/www/wordpress/wp-content # Generate a random number. $ wp eval 'echo rand();' --skip-wordpress 479620423
public
__invoke
(
$args
,
$assoc_args
)