Skip to content

Commit

Permalink
Merge pull request #32 from newfold-labs/content-label-keys
Browse files Browse the repository at this point in the history
Label keys for content
  • Loading branch information
circlecube authored Sep 22, 2023
2 parents 3bba681 + f6ebbfa commit fee5b2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Listeners/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function post_status( $new_status, $old_status, $post ) {
);
if ( $new_status !== $old_status && in_array( $new_status, $allowed_statuses, true ) ) {
$data = array(
'label_key' => 'new_status',
'old_status' => $old_status,
'new_status' => $new_status,
'post' => $post,
Expand Down Expand Up @@ -95,6 +96,7 @@ public function comment_status( $new_status, $old_status, $comment ) {
);
if ( $new_status !== $old_status && in_array( $new_status, $allowed_statuses, true ) ) {
$data = array(
'label_key' => 'new_status',
'old_status' => $old_status,
'new_status' => $new_status,
'comment' => $comment,
Expand Down

0 comments on commit fee5b2b

Please sign in to comment.