includes_url

過濾鉤子
apply_filters( 'includes_url', $url, $path, $scheme )
引數
  • (string) $url The complete URL to the includes directory including scheme and path.
    Required:
  • (string) $path Path relative to the URL to the wp-includes directory. Blank string if no path is specified.
    Required:
  • (string|null) $scheme Scheme to give the includes URL context. Accepts 'http', 'https', 'relative', or null. Default null.
    Required:
定義位置
相關勾子
plugins_urlrest_urladmin_urllogin_urllogout_url
相關方法
includes_urlclean_urlesc_urlplugins_urlrest_urlwp_nonce_url
引入
5.8.0
棄用
-

includes_url: 這個函式返回WordPress包含目錄的URL: 這個函式可以用來引用includes目錄中的檔案,如JavaScript檔案或CSS檔案。

過濾包含目錄的URL。

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

常見問題

FAQs
檢視更多 >