Skip to content

Commit

Permalink
Add updates to options page functionality from #114
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsherrard committed Aug 6, 2021
1 parent e2f5363 commit eb557e4
Showing 1 changed file with 34 additions and 27 deletions.
61 changes: 34 additions & 27 deletions src/ActionMonitor/Monitors/AcfMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.

}

}
}

0 comments on commit eb557e4

Please sign in to comment.