Advertisement
verygoodplugins

Untitled

Oct 1st, 2020
1,465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. function my_update_user( $user_id ) {
  2.  
  3.     $field = sanitize_text_field( $_GET['custom_parameter'] );
  4.  
  5.     update_user_meta( $user_id, 'custom_parameter', $field );
  6.  
  7. }
  8.  
  9. add_action( 'wpf_api_success', 'my_update_user' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement