# 如何在functions.php中导入自定义的脚本

在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');

你可能感兴趣的:(# 如何在functions.php中导入自定义的脚本)