From d07b98046d053e18b2f7748bc742c94e021f2db3 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Wed, 12 Oct 2016 05:01:32 -0700 Subject: [PATCH] Mention that the hook needs to fire in order to profile it --- README.md | 3 +++ inc/class-command.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 96de3d2..2fce0c5 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,9 @@ Profile key metrics for WordPress hooks (actions and filters). wp profile hook [] [--all] [--url=] [--fields=] [--format=] ~~~ +In order to profile callbacks on a specific hook, the action or filter +will need to execute during the course of the request. + **OPTIONS** [] diff --git a/inc/class-command.php b/inc/class-command.php index e0e6be5..4b0e011 100644 --- a/inc/class-command.php +++ b/inc/class-command.php @@ -85,6 +85,9 @@ class Command { /** * Profile key metrics for WordPress hooks (actions and filters). * + * In order to profile callbacks on a specific hook, the action or filter + * will need to execute during the course of the request. + * * ## OPTIONS * * []