acf/post_type/available_supports
Использование
add_filter( 'acf/post_type/available_supports', 'wp_kama_acf_post_type_available_supports_filter', 10, 2 );
/**
* Function for `acf/post_type/available_supports` filter-hook.
*
* @param $acf_available_supports
* @param $acf_post_type
*
* @return
*/
function wp_kama_acf_post_type_available_supports_filter( $acf_available_supports, $acf_post_type ){
// filter...
return $acf_available_supports;
}
- $acf_available_supports
- -
- $acf_post_type
- -
Где вызывается хук
acf/post_type/available_supports
acf/includes/admin/views/acf-post-type/advanced-settings.php 46
$acf_available_supports = apply_filters( 'acf/post_type/available_supports', $acf_available_supports, $acf_post_type );