Hi All,
I am trying to perform some additional code around user management. So I have created three functions in my themes functions.php and
hooked these to three actions. The odd thing is that when I add, update or delete a user in the backend through Admin none of them fires.....
Here's my extension to ...vantagepremiumfunctions.php
function register_sbestek_user( $user_id ){
echo 'register_sbestek_user
';
// do some other stuff
}
add_action( 'user_register', 'register_sbestek_user', 15, 1 );
function sbestek_profile_update( $user_id, $old_user_data ) {
// Do something
echo 'sbestek_profile_update
';
}
add_action( 'profile_update', 'sbestek_profile_update', 15, 2 );
function delete_sbestek_user( $user_id ) {
// Do something
echo 'delete_sbestek_user
';
}
add_action( 'deleted_user', 'delete_sbestek_user', 15, 1 );
Hope someone can help, all three not firing...what am I doing wrong?
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 312 تاريخ : پنجشنبه 14 مرداد 1395 ساعت: 4:56