From 8c9362666f045652d8c874a7042c2eccb2b07ec0 Mon Sep 17 00:00:00 2001 From: Laurens Kling Date: Mon, 13 Dec 2021 14:52:23 +0100 Subject: [PATCH] Update action-monitor.md `log_action` is directly on the `$this` --- docs/action-monitor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/action-monitor.md b/docs/action-monitor.md index 132e671..b4349dd 100644 --- a/docs/action-monitor.md +++ b/docs/action-monitor.md @@ -220,7 +220,7 @@ class MyCustomActionMonitor extends \WPGatsby\ActionMonitor\Monitors\Monitor { * This will create an entry in the `action_monitor` post type * and will notify Gatsby Source WordPress about the activity. */ - $this->monitor->log_action( [ + $this->log_action( [ 'action_type' => 'CREATE', 'title' => $your_custom_object->title, 'graphql_single_name' => 'MyCustomType',