verygoodplugins

Untitled

Oct 1st, 2020
996
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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' );
RAW Paste Data