acf/schema/schema_properties
Filter the available Schema.org properties.
Allows developers to add custom Schema.org properties or modify existing ones.
Usage
add_filter( 'acf/schema/schema_properties', 'wp_kama_acf_schema_properties_filter', 10, 2 );
/**
* Function for `acf/schema/schema_properties` filter-hook.
*
* @param array $properties The Schema.org role mappings grouped by type.
* @param string $field_type The ACF field type being configured.
*
* @return array
*/
function wp_kama_acf_schema_properties_filter( $properties, $field_type ){
// filter...
return $properties;
}
- $properties(array)
- The Schema.org role mappings grouped by type.
- $field_type(string)
- The ACF field type being configured.
Where the hook is called
acf/schema/schema_properties
acf/src/AI/GEO/FieldSettings.php 278
$roles = apply_filters( 'acf/schema/schema_properties', $roles, $field_type );