diff --git a/src/ActionMonitor/Monitors/AcfMonitor.php b/src/ActionMonitor/Monitors/AcfMonitor.php index c379854..f944c31 100644 --- a/src/ActionMonitor/Monitors/AcfMonitor.php +++ b/src/ActionMonitor/Monitors/AcfMonitor.php @@ -2,34 +2,41 @@ namespace WPGatsby\ActionMonitor\Monitors; -class AcfMonitor extends Monitor { +class AcfMonitor extends Monitor +{ + public function init() + { + // ACF Actions + add_action( + 'acf/update_field_group', + function () { + $this->trigger_schema_diff( + [ + 'title' => __('Update ACF Field Group', 'WPGatsby'), + ] + ); + } + ); - public function init() { - // ACF Actions - add_action( - 'acf/update_field_group', - function() { - $this->trigger_schema_diff( - [ - 'title' => __( 'Update ACF Field Group', 'WPGatsby' ), - ] - ); - } - ); + add_action( + 'acf/delete_field_group', + function () { + $this->trigger_schema_diff( + [ + 'title' => __('Delete ACF Field Group', 'WPGatsby'), + ] + ); + } + ); - add_action( - 'acf/delete_field_group', - function() { - $this->trigger_schema_diff( - [ - 'title' => __( 'Delete ACF Field Group', 'WPGatsby' ), - ] + add_action( + 'acf/save_post', + function () { $this->trigger_schema_diff( + [ + 'title' => __('Update option page', 'WPGatsby') + ] + ); + } ); - } - ); - - // @todo: Add support for tracking ACF Options Fields. - - } - + } }