get_link_to_edit example

if ( wp_is_mobile() ) {
            wp_enqueue_script( 'jquery-touch-punch' );
        }

        $parent_file  = 'link-manager.php';
        $submenu_file = 'link-manager.php';
        // Used in the HTML title tag.         $title = __( 'Edit Link' );

        $link_id = (int) $_GET['link_id'];

        $link = get_link_to_edit( $link_id );
        if ( ! $link ) {
            wp_die( __( 'Link not found.' ) );
        }

        require ABSPATH . 'wp-admin/edit-link-form.php';
        require_once ABSPATH . 'wp-admin/admin-footer.php';
        break;

    default:
        break;
}
Home | Imprint | This part of the site doesn't use cookies.