safe_style_css

過濾鉤子
引數
  • (string[]) $attr Array of allowed CSS attributes.
    Required:
定義位置
相關勾子
wp_sitemaps_stylesheet_cssthe_title_rssprint_late_styleswp_title_rssms_site_check
相關方法
wp_style_iswp_stylessanitize_html_classthe_title_rssprint_late_styleslocale_stylesheet
引入
2.8.1
棄用
-

safe_style_css: 這個函式用來指定在WordPress網站中安全使用的CSS樣式列表。這些樣式通常用於格式化網站的內容,如字型樣式、顏色和背景影象。

過濾允許的CSS屬性列表。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$allowed_attr = apply_filters(
$allowed_attr = apply_filters(
$allowed_attr = apply_filters(

常見問題

FAQs
檢視更多 >