# 如何在functions.php中导入自定义的脚本
时间:2020-07-04 16:05:53
收藏:0
阅读:52
在wp-content\themes\vt-blogging\functions.php中,导入自定义脚本
wp-content\themes\vt-blogging\custom_pages\custom_script\custom-functions.php
在wp-content\themes\vt-blogging\functions.php中:
include (dirname(__FILE__) . ‘/custom_pages/custom_script/custom-functions.php‘)
或者
require_once(dirname(__FILE__) . ‘/custom_pages/custom_script/custom-functions.php‘);
原文:https://www.cnblogs.com/jaycethanks/p/13235088.html
评论(0)