Advertisements

get_default_link_to_edit

Definition:
function get_default_link_to_edit() {}

Retrieve the default link for editing.

Return values

returns:link

Source code

function get_default_link_to_edit() {

	if ( isset( $_GET['linkurl'] ) )

		$link->link_url = esc_url( $_GET['linkurl'] );

	else

		$link->link_url = '';



	if ( isset( $_GET['name'] ) )

		$link->link_name = esc_attr( $_GET['name'] );

	else

		$link->link_name = '';



	$link->link_visible = 'Y';



	return $link;

}

1358

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: