Advertisement
verygoodplugins

Untitled

Aug 21st, 2019
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. function wpf_customize_field( $user_meta, $user_id ) {
  2.  
  3.     if ( isset( $user_meta['event_checkin'] ) ) {
  4.         $user_meta['event_checkin'] = 'Yes';
  5.     }
  6.  
  7.     return $user_meta;
  8.  
  9. }
  10.  
  11. add_filter( 'wpf_user_update', 'wpf_customize_field', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement