Plugin Directory

Changeset 3183685


Ignore:
Timestamp:
11/07/2024 09:57:42 AM (16 months ago)
Author:
eberwp
Message:

update 4.2 with fix user sync

Location:
eber/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • eber/trunk/index.php

    r3130508 r3183685  
    5959// EndWoo
    6060// sync user
    61 add_action( 'user_register', array('Eber_FrontEnd','sync_user'),100);
     61
     62add_action('plugins_loaded', function() {
     63    if (has_action('user_registration_after_user_meta_update')) {
     64        add_action( 'user_registration_after_user_meta_update', array('Eber_FrontEnd','sync_user_custom'),11,3);
     65
     66    } else {
     67        add_action( 'user_register', array('Eber_FrontEnd','sync_user'),100);
     68    }
     69});
  • eber/trunk/init/frontend.php

    r3063180 r3183685  
    333333        }
    334334    }
     335    public static function sync_user_custom( $form_data,$data,$user_id)
     336    {
     337        Eber_FrontEnd::sync_user($user_id);
     338    }
    335339}
  • eber/trunk/readme.txt

    r3130508 r3183685  
    110110= 4.1 =
    111111fix option to stop instant sync user
    112 = 4.2 =
     112= 4.2 =
     113fix option to stop instant sync user
    113114fix user sync meta data
    114115
     
    117118
    118119
     120
Note: See TracChangeset for help on using the changeset viewer.