Advertisements

_insert_into_post_button

Definition:
function _insert_into_post_button($type) {}

Parameters

  • $type

Source code

function _insert_into_post_button($type) {

	if ( !post_type_supports(get_post_type($_GET['post_id']), 'editor') )

		return '';



	if ( 'image' == $type )

	return '

		<tr>

			<td></td>

			<td>

				<input type="button" class="button" id="go_button" style="color:#bbb;" onclick="addExtImage.insert()" value="' . esc_attr__('Insert into Post') . '" />

			</td>

		</tr>

	';



	return '

		<tr>

			<td></td>

			<td>

				' . get_submit_button( __( 'Insert into Post' ), 'button', 'insertonlybutton', false ) . '

			</td>

		</tr>

	';

}

4333

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: