且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Wordpress 中调用自定义 php 模板中的函数

更新时间:2022-04-25 10:08:50

首先使用 require_once() 来包含 test.php,即

First use require_once() to include the test.php, i.e.

require_once("path\test.php");

然后你可以简单地调用 this-function() 就可以了.

Then you can simply call this-function() and it will work.

您可以将其用作参考:http://www.php.net/manual/en/function.require.php