acf/schema/output_format_choices
Filter the available output format choices.
Usage
add_filter( 'acf/schema/output_format_choices', 'wp_kama_acf_schema_output_format_choices_filter', 10, 3 );
/**
* Function for `acf/schema/output_format_choices` filter-hook.
*
* @param array $choices The output format choices.
* @param string $field_type The ACF field type.
* @param string $property The selected Schema.org property.
*
* @return array
*/
function wp_kama_acf_schema_output_format_choices_filter( $choices, $field_type, $property ){
// filter...
return $choices;
}
- $choices(array)
- The output format choices.
- $field_type(string)
- The ACF field type.
- $property(string)
- The selected Schema.org property.
Where the hook is called
acf/schema/output_format_choices
acf/src/AI/GEO/FieldSettings.php 362
return apply_filters( 'acf/schema/output_format_choices', $choices, $field_type, $property );