Advertisement
DidouS

Add Easy ACF Connect fieldtype to list in connector

Mar 20th, 2020
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. /**
  2.  * Add filter to add a certain fieldtype in the Easy ACF Connect for Beaver Builder plugin
  3.  */
  4.  
  5. add_filter( 'easy_acf_accepted_acf_field_types' , 'add_my_custom_field_type' );
  6.  
  7. function add_my_custom_field_type( $fieldtypes ) {
  8.  
  9.     $fieldtypes[] = array(
  10.                             'name' => 'civicrm_relationship',   // fieldtype as registered in ACF
  11.                             'label' => __( 'CiviCRM Relationship' , 'text-domain' ),
  12.                                        
  13.                         );
  14.  
  15.     return $fieldtypes;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement