Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Remove unused second argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestephanis committed May 6, 2024
1 parent 0602284 commit 84d2a22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/inc/woocommerce-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static function hooks() {
add_action( 'wp_login', array( static::class, 'login_success' ), 100, 2 );
add_action( 'wp_login_failed', array( static::class, 'login_failure' ), 100, 2 );
add_action( 'user_register', array( static::class, 'create_account' ), 100 );
add_action( 'profile_update', array( static::class, 'update_account' ), 100, 2 );
add_action( 'profile_update', array( static::class, 'update_account' ), 100 );
add_action( 'wp_set_password', array( static::class, 'update_password' ), 100, 2 );
add_action( 'woocommerce_add_to_cart', array( static::class, 'add_to_cart' ), 100 );
add_action( 'woocommerce_remove_cart_item', array( static::class, 'remove_from_cart' ), 100, 2 );
Expand Down Expand Up @@ -170,11 +170,10 @@ public static function create_account( string $user_id ) {
* @link https://developers.sift.com/docs/curl/events-api/reserved-events/update-account
*
* @param string $user_id User's ID.
* @param array $old_user_data Old data before change.
*
* @return void
*/
public static function update_account( string $user_id, array $old_user_data ) {
public static function update_account( string $user_id ) {
$user = get_user_by( 'id', $user_id );

self::add(
Expand Down

0 comments on commit 84d2a22

Please sign in to comment.