plugins_url

過濾鉤子
apply_filters( 'plugins_url', $url, $path, $plugin )
引數
  • (string) $url The complete URL to the plugins directory including scheme and path.
    Required:
  • (string) $path Path relative to the URL to the plugins directory. Blank string if no path is specified.
    Required:
  • (string) $plugin The plugin file path to be relative to. Blank string if no plugin is specified.
    Required:
定義位置
相關勾子
login_urlplugins_apiplugins_loadedbloginfo_urlplugins_api_result
相關方法
plugins_urlplugin_dir_urlwp_login_urlplugins_apiget_pluginsplugin_dir_path
引入
2.8.0
棄用
-

plugins_url 是一個函式,用來返回外掛目錄的URL: 當包括外掛的檔案或檢查外掛的位置時,這個函式可能很有用。

過濾外掛目錄的URL。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'plugins_url', $url, $path, $plugin );
return apply_filters( 'plugins_url', $url, $path, $plugin );
return apply_filters( 'plugins_url', $url, $path, $plugin );

常見問題

FAQs
檢視更多 >