1

I am trying to run a function. And that function I would like it to run when I open a user's form (in my wp-admin).

Which Hook would be the one I should use ?? Ideally, you should run the function once the user form fields are displayed.

¿¿ after_showing_user ??


I am currently using:

Add_action ('profile_update', 'refreshSize', 10, 2);

To do so, click the "Update User" button.

0

1 Answer 1

1

Yes, this is CORRECT

add_action('edit_user_profile', 'limpiamosVariables');

function limpiamosVariables($user){

        // My Code Sample
        update_option( "var_ios_token", get_field('token_user', 'user_'.$user->id) );


};
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.