get_screen_icon

函式
get_screen_icon ( No parameters )
返回值
  • (string) An HTML comment explaining that icons are no longer used.
定義位置
相關方法
screen_iconset_screen_optionsget_attachment_iconscreen_optionsadd_screen_option
引入
3.2.0
棄用
3.8.0

get_screen_icon函式是一個WordPress函式,用於檢索某個特定螢幕或頁面的圖示URL: 這個函式將螢幕ID作為引數,並返回圖示的URL。

檢索螢幕圖示(在3.8以上版本不再使用)。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_screen_icon() {
_deprecated_function( __FUNCTION__, '3.8.0' );
return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
}
function get_screen_icon() { _deprecated_function( __FUNCTION__, '3.8.0' ); return '<!-- Screen icons are no longer used as of WordPress 3.8. -->'; }
function get_screen_icon() {
	_deprecated_function( __FUNCTION__, '3.8.0' );
	return '<!-- Screen icons are no longer used as of WordPress 3.8. -->';
}

常見問題

FAQs
檢視更多 >