wpseek.com
A WordPress-centric search engine for devs and theme authors
get_default_link_to_edit › WordPress Function
Since2.0.0
Deprecatedn/a
› get_default_link_to_edit ( No parameters )
Returns: |
|
Defined at: |
|
Codex: |
Retrieves the default link for editing.
Related Functions: get_default_page_to_edit, get_default_post_to_edit, get_link_to_edit, get_real_file_to_edit, get_default_feed
Source
function get_default_link_to_edit() { $link = new stdClass(); if ( isset( $_GET['linkurl'] ) ) { $link->link_url = esc_url( wp_unslash( $_GET['linkurl'] ) ); } else { $link->link_url = ''; } if ( isset( $_GET['name'] ) ) { $link->link_name = esc_attr( wp_unslash( $_GET['name'] ) ); } else { $link->link_name = ''; } $link->link_visible = 'Y'; return $link; }