首页 WordPress函数大全 plugin_dir_path()

plugin_dir_path()

2020-05-02 / 4632阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

plugin_dir_path( string $file )

获取传入的插件__FILE__的文件系统目录路径(带有斜杠)。

描述

参数

$file

(string)
(Required)
The filename of the plugin (__FILE__).

返回

(string) the filesystem path of the directory that contains the plugin.

大家谈论
    我的见解