links_popup_script

Show the link to the links popup and the number of links.

Description

links_popup_script( (string) $text = 'Links', (int) $width = 400, (int) $height = 400, (string) $file = 'links.all.php', (constant) $count = true ); 

Parameters (5)

0. $text — Optional. (string) => 'Links'
The text of the link
1. $width — Optional. (int) => 400
The width of the popup window
2. $height — Optional. (int) => 400
The height of the popup window
3. $file — Optional. (string) => 'links.all.php'
The page to open in the popup window
4. $count — Optional. (constant) => true
The number of links in the db

Usage

  1. if ( !function_exists( 'links_popup_script' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // the text of the link 
  5. $text = 'Links'; 
  6.  
  7. // the width of the popup window 
  8. $width = 400; 
  9.  
  10. // the height of the popup window 
  11. $height = 400; 
  12.  
  13. // the page to open in the popup window 
  14. $file = 'links.all.php'; 
  15.  
  16. // the number of links in the db 
  17. $count = true; 
  18.  
  19. // NOTICE! Understand what this does before running. 
  20. $result = links_popup_script($text, $width, $height, $file, $count); 
  21.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function links_popup_script($text = 'Links', $width=400, $height=400, $file='links.all.php', $count = true) { 
  2. _deprecated_function( __FUNCTION__, '2.1.0' );