get_upload_iframe_src

Definition:
function get_upload_iframe_src($type) {}

Parameters

  • $type

Defined filters

  • $type_upload_iframe_src
    apply_filters($type . '_upload_iframe_src', $upload_iframe_src)

Source code

function get_upload_iframe_src($type) {

	global $post_ID, $temp_ID;

	$uploading_iframe_ID = (int) (0 == $post_ID ? $temp_ID : $post_ID);

	$upload_iframe_src = add_query_arg('post_id', $uploading_iframe_ID, 'media-upload.php');



	if ( 'media' != $type )

		$upload_iframe_src = add_query_arg('type', $type, $upload_iframe_src);

	$upload_iframe_src = apply_filters($type . '_upload_iframe_src', $upload_iframe_src);



	return add_query_arg('TB_iframe', true, $upload_iframe_src);

}

1873

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: