Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

verygoodplugins May 21st, 2020 (edited) 1,114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function custom_format_checkbox( $value, $field_type, $field ) {
  2.  
  3.     if ( 'checkbox' == $field_type ) {
  4.  
  5.         if ( ! empty( $value ) )
  6.             $value = 'Ja';
  7.         } elseif {
  8.             $value = null;
  9.         }
  10.  
  11.     }
  12.  
  13.     return $value;
  14.  
  15. }
  16.  
  17. add_filter( 'wpf_format_field_value', 'custom_format_checkbox', 20, 3 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top