Advertisement
verygoodplugins

Untitled

Oct 22nd, 2019
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. function format_capabilities( $value, $field_type, $field ) {
  2.  
  3.     if ( $field == 'my_field_key' && is_array( $value ) ) {
  4.         $value = implode( ", ", array_keys( $value ) );
  5.     }
  6.  
  7.     return $value;
  8.  
  9. }
  10.  
  11. add_filter( 'wpf_format_field_value', 'format_capabilities', 5, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement