wp-cli / profile-command

Quickly identify what's slow with WordPress
MIT License
266 stars 29 forks source link

Can `wp profile` be run as a logged in user? #143

Closed Flimm closed 6 years ago

Flimm commented 6 years ago

It would be useful for my use-cases if I could run wp profile as a logged in user, as a lot of new functionality is triggered for logged in users.

Could I request this feature? (I'm not sure if it exists already.)

danielbachhuber commented 6 years ago

Hi @Flimm,

You can set execution of any WP-CLI command to a specific user with --user=<user>. See global config for more details.

Flimm commented 6 years ago

Amazing, thank you as always @danielbachhuber !