acf_get_location_screen() ACF 5.9.0
Returns ann array of screen args to be used against matching rules.
Хуки из функции
Возвращает
Массив.
Использование
acf_get_location_screen( $screen, $deprecated );
- $screen(массив)
- The screen args.
- $deprecated(массив)
- The field group array.
Список изменений
С версии 5.9.0 | Введена. |
Код acf_get_location_screen() acf get location screen ACF 5.9.1
function acf_get_location_screen( $screen = array(), $deprecated = false ) {
// Apply defaults.
$screen = wp_parse_args($screen, array(
'lang' => acf_get_setting('current_language'),
'ajax' => false
));
/**
* Filters the result.
*
* @date 30/5/17
* @since 5.6.0
*
* @param array $screen The screen args.
* @param array $deprecated The field group array.
*/
return apply_filters( 'acf/location/screen', $screen, $deprecated );
}