文件名称:file-locator:返回 WordPress 文件路径或文件内容,检查子主题,然后主题,然后作为绝对文件路径
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-09 03:20:52
PHP
CalderaWP 文件加载器 返回文件路径或文件内容,检查子主题,然后主题,然后作为绝对文件路径。 用法 //Load a file called "food.html" from current themes "templates" folder $ file = calderawp_file_locator ( 'templates/food.html' ); if ( is_string ( $ file ) ) { echo $ file ; } //load a php file from your plugin, if a file "noms.php" of same name is not in template $ file = calderawp_file_locator ( 'noms.php
【文件预览】:
file-locator-master
----src()
--------file_locator.php(4KB)
--------functions.php(1KB)
----README.md(2KB)
----composer.json(599B)