links_popup_script

函式
links_popup_script ( $text = 'Links', $width = 400, $height = 400, $file = 'links.all.php', $count = true )
引數
  • (string) $text the text of the link
    Required:
    Default: 'Links'
  • (int) $width the width of the popup window
    Required:
    Default: 400
  • (int) $height the height of the popup window
    Required:
    Default: 400
  • (string) $file the page to open in the popup window
    Required:
    Default: 'links.all.php'
  • (bool) $count the number of links in the db
    Required:
    Default: true
定義位置
相關方法
comments_popup_scriptprint_footer_scriptswp_scripts_wp_footer_scriptsprint_head_scripts
引入
0.71
棄用
2.1.0

links_popup_script: 這是WordPress中的一個函式,它為網站blogroll中的所有連結新增一個JavaScript彈出視窗。你可以使用這個函式在一個彈出視窗或燈箱中顯示連結,這對顯示預覽或關於連結網站的更多資訊很有用。

顯示連結彈出視窗的連結和連結的數量。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
_deprecated_function( __FUNCTION__, '2.1.0' );
}
function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) { _deprecated_function( __FUNCTION__, '2.1.0' ); }
function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) {
	_deprecated_function( __FUNCTION__, '2.1.0' );
}

常見問題

FAQs
檢視更多 >