Skip to content

Commit

Permalink
Add filter onesignal settings.
Browse files Browse the repository at this point in the history
Fixes #88
  • Loading branch information
AaronHolbrook authored and rgomezp committed Apr 16, 2019
1 parent 27d1e16 commit 6a41b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onesignal-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ public static function get_onesignal_settings() {
}
}

return $onesignal_wp_settings;
return apply_filters( 'onesignal_get_settings', $onesignal_wp_settings );
}

public static function save_onesignal_settings($settings) {
$onesignal_wp_settings = $settings;
update_option("OneSignalWPSetting", $onesignal_wp_settings);
}
}
?>
?>

0 comments on commit 6a41b8b

Please sign in to comment.