media_buttons [ WordPress Function ]
media_buttons ( $editor_id = 'content' )
| Defined at: |
|
Benzer Fonksiyonlar: _media_button, press_this_media_buttons, submit_button, media_upload_tabs, get_submit_button
{@internal Missing Short Description}}
Source
<?php
function media_buttons($editor_id = 'content') {
$context = apply_filters('media_buttons_context', __('Upload/Insert %s'));
$img = '<img src="' . esc_url( admin_url( 'images/media-button.png?ver=20111005' ) ) . '" width="15" height="15" />';
echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media" id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>';
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- media_buttons Wordpress hook details -- Adam Brown, BYU ...
Detailed information about every action hook and filter used in WordPress. Makes Plugin API easier to use. Lists appearance, file location, and deprecation data ...
adambrown.info - WordPress › Support » P2 Theme - media_buttons - automatically ...
P2 Theme - media_buttons - automatically attach files to post (3 posts) ... I'm trying to achieve that files/images uploaded via the media buttons in P2 are ...
wordpress.org - WordPress › Support » How to modify P2::media_buttons
Looking into the P2 files one comes across <?php echo P2::media_buttons(); ?> ... I would really appreciate help on how P2::media_buttons(); uses parameters if ...
wordpress.org - Wordpress Add custom media_buttons for shortcode selection
Mar 17, 2011 ... I was looking for a simple way to create a menu for my shortcode items and although you can create tinymce plugins I found it to be a pain.
wpsnipp.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- paoltaia on "P2 Theme - media_buttons - automatically attach files to post"
- Momekh on "P2 Theme - media_buttons - automatically attach files to post"
- creafolio on "P2 Theme - media_buttons - automatically attach files to post"
- gazotem on "How do you load top-level wordpress plugin menu page into built-in thickbox?"
- clarklab on "How to modify P2::media_buttons"
- Caramboo on "How to modify P2::media_buttons"
- clarklab on "How to modify P2::media_buttons"
- Creative Slice on "How to modify P2::media_buttons"
- pswheeler on "How to modify P2::media_buttons"
- gunfios on "How to modify P2::media_buttons"