Skip to content

Commit

Permalink
Labels for plugin events
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeHansenMe authored Sep 22, 2023
1 parent d9702d9 commit 8eab57d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Listeners/BluehostPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function site_launch( $new_option, $old_option ) {
*/
public function sso_success( $user, $redirect ) {
$data = array(
'label_key' => 'status',
'status' => 'success',
'landing_page' => $redirect,
);
Expand All @@ -73,7 +74,7 @@ public function sso_success( $user, $redirect ) {
* @return void
*/
public function sso_fail() {
$this->push( 'sso', array( 'status' => 'fail' ) );
$this->push( 'sso', array( 'label_key' => 'status', 'status' => 'fail' ) );
}

/**
Expand All @@ -84,6 +85,6 @@ public function sso_fail() {
* @return void
*/
public function staging( $command ) {
$this->push( 'staging', array( 'command' => $command ) );
$this->push( 'staging', array( 'label_key' => 'command', 'command' => $command ) );
}
}

0 comments on commit 8eab57d

Please sign in to comment.