Advertisement
verygoodplugins

Untitled

Feb 4th, 2020
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. function custom_wpf_query_args( $query_args, $method ) {
  2.  
  3.     if ( 'get_contact_id' == $method ) {
  4.  
  5.         $query_args['q'] = str_replace( 'Email', 'Email__c', $query_args['q'] );
  6.  
  7.     }
  8.  
  9.     return $query_args;
  10. }
  11.  
  12. add_filter( 'wpf_salesforce_query_args', 'custom_wpf_query_args', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement