wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
get_default_link_to_edit › WordPress Function
Seit2.0.0
Veraltetn/v
› get_default_link_to_edit ( Keine Parameter )
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Retrieves the default link for editing.
Ähnliche Funktionen: get_default_post_to_edit, get_default_page_to_edit, get_link_to_edit, get_real_file_to_edit, get_default_feed
Quellcode
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;
}