_insert_into_post_button [ WordPress Function ]
_insert_into_post_button ( $type )
| Defined at: |
|
Soorgelijke functies: wp_insert_post, _transition_post_status, get_submit_button, _draft_or_post_title, get_edit_post_link
No description yet.
Source
<?php
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>
';
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- _insert_into_post_button (WordPress Function) - WPSeek.com
WordPress lookup for _insert_into_post_button, a WordPress Function. wpseek. com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - custom field - Add new "Insert Into Post" button with another function ...
Feb 19, 2011 ... Problem: Add a hook that automatically adds a short tag to video attachments when inserted from the Media Library (video) tab: Update: ...
wordpress.stackexchange.com - #20427 (Remove unused _insert_into_post_button() function ...
_insert_into_post_button() is no longer used in core since [18831]. It's a private function which doesn't seem to be used in any plugins, so I guess it can be ...
core.trac.wordpress.org - _insert_into_post_button | A HitchHackers guide through WordPress
Feb 12, 2011 ... function _insert_into_post_button($type) { if ( !post_type_supports(get_post_type( $_GET['post_id']), 'editor') ) return ''; if ( 'image' == $type ) ...
hitchhackerguide.com