acf/compatibility/(name)
Returns true if compatibility is enabled for the given component.
Usage
add_filter( 'acf/compatibility/(name)', 'wp_kama_acf_compatibility_name_filter' );
/**
* Function for `acf/compatibility/(name)` filter-hook.
*
* @param string $name The name of the component to check.
*
* @return string
*/
function wp_kama_acf_compatibility_name_filter( $name ){
// filter...
return $name;
}
- $name(string)
- The name of the component to check.
Changelog
| Since 5.1.5 | Introduced. |
Where the hook is called
acf/compatibility/(name)
acf/includes/compatibility.php 490
return apply_filters( "acf/compatibility/{$name}", false );