acf_get_view()
acf_get_view
This function will load in a file from the 'admin/views' folder and allow variables to be passed through
@type function
Хуков нет.
Возвращает
null
. Ничего.
Использование
acf_get_view( $path, $args );
- $path **
- -
По умолчанию: '' - $args **
- -
По умолчанию: array()
Список изменений
С версии 5.0.0 | Введена. |
Код acf_get_view() acf get view ACF 5.10.2
function acf_get_view( $path = '', $args = array() ) { // allow view file name shortcut if ( substr( $path, -4 ) !== '.php' ) { $path = acf_get_path( "includes/admin/views/{$path}.php" ); } // include if ( file_exists( $path ) ) { extract( $args ); include $path; } }