acf_get_url()
acf_get_url
Returns the plugin url to a specified file. This function also defines the ACF_URL constant.
Хуков нет.
Возвращает
Строку
.
Использование
acf_get_url( $filename );
- $filename(строка)
- The specified file.
По умолчанию: ''
Список изменений
С версии 5.6.8 | Введена. |
Код acf_get_url() acf get url ACF 6.0.4
function acf_get_url( $filename = '' ) { if ( ! defined( 'ACF_URL' ) ) { define( 'ACF_URL', acf_get_setting( 'url' ) ); } return ACF_URL . ltrim( $filename, '/' ); }