content_url

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

content_url是一個過濾鉤子,允許你修改你的WordPress安裝的內容目錄的URL: 當你需要把你的內容目錄移到一個不同的位置,或者由於其他原因改變你的內容目錄的URL時,這個鉤子是有用的。

過濾到內容目錄的URL。

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

常見問題

FAQs
檢視更多 >