acf/blocks/prevent_edit_forms_on_rest_endpoints
Использование
add_filter( 'acf/blocks/prevent_edit_forms_on_rest_endpoints', 'wp_kama_acf_blocks_prevent_edit_forms_on_rest_endpoints_filter' ); /** * Function for `acf/blocks/prevent_edit_forms_on_rest_endpoints` filter-hook. * * @param $true * * @return */ function wp_kama_acf_blocks_prevent_edit_forms_on_rest_endpoints_filter( $true ){ // filter... return $true; }
- $true
- -
Где вызывается хук
acf/blocks/prevent_edit_forms_on_rest_endpoints
acf/pro/blocks.php 602
if ( $form && acf_get_data( 'acf_inside_rest_call' ) && apply_filters( 'acf/blocks/prevent_edit_forms_on_rest_endpoints', true ) ) {