acf/bidirectional/supported_target_field_types
Build valid fields for a bidirectional relationship for select2 display
Usage
add_filter( 'acf/bidirectional/supported_target_field_types', 'wp_kama_acf_bidirectional_supported_target_field_types_filter' );
/**
* Function for `acf/bidirectional/supported_target_field_types` filter-hook.
*
* @param array $results The original results array.
*
* @return array
*/
function wp_kama_acf_bidirectional_supported_target_field_types_filter( $results ){
// filter...
return $results;
}
- $results(array)
- The original results array.
Changelog
| Since 6.2 | Introduced. |
Where the hook is called
acf/bidirectional/supported_target_field_types
acf/includes/acf-bidirectional-functions.php 157
$valid_field_types = apply_filters( 'acf/bidirectional/supported_target_field_types', array( 'relationship', 'post_object', 'user', 'taxonomy' ) );