_get_template_edit_filename()
Tidies a filename for url display by the theme file editor.
Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.
Хуков нет.
Возвращает
Строку.
Использование
_get_template_edit_filename( $fullpath, $containingfolder );
- $fullpath(строка) (обязательный)
- Full path to the theme file.
- $containingfolder(строка) (обязательный)
- Path of the theme parent folder.
Список изменений
| С версии 2.9.0 | Введена. |
Код _get_template_edit_filename() get template edit filename WP 7.0.2
function _get_template_edit_filename( $fullpath, $containingfolder ) {
return str_replace( dirname( $containingfolder, 2 ), '', $fullpath );
}