get_default_link_to_edit

Retrieves the default link for editing.

Description

get_default_link_to_edit(); 

Usage

  1. if ( !function_exists( 'get_default_link_to_edit' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/bookmark.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_default_link_to_edit(); 
  7.  

Defined (1)

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

/wp-admin/includes/bookmark.php  
  1. function get_default_link_to_edit() { 
  2. $link = new stdClass; 
  3. if ( isset( $_GET['linkurl'] ) ) 
  4. $link->link_url = esc_url( wp_unslash( $_GET['linkurl'] ) ); 
  5. else 
  6. $link->link_url = ''; 
  7.  
  8. if ( isset( $_GET['name'] ) ) 
  9. $link->link_name = esc_attr( wp_unslash( $_GET['name'] ) ); 
  10. else 
  11. $link->link_name = ''; 
  12.  
  13. $link->link_visible = 'Y'; 
  14.  
  15. return $link;