首页 WordPress函数大全 plugin_dir_url()

plugin_dir_url()

2020-05-02 / 3278阅 / 悠然

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

plugin_dir_url( string $file )

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

描述

参数

$file

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

返回

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

大家谈论
    我的见解