image_media_send_to_editor [ WordPress Function ]
image_media_send_to_editor ( $html, $attachment_id, $attachment )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: media_send_to_editor, get_image_send_to_editor, image_constrain_size_for_editor, get_real_file_to_edit, image_attachment_fields_to_edit
{@internal Missing Short Description}}
Source
<?php
function image_media_send_to_editor($html, $attachment_id, $attachment) {
$post =& get_post($attachment_id);
if ( substr($post->post_mime_type, 0, 5) == 'image' ) {
$url = $attachment['url'];
$align = !empty($attachment['align']) ? $attachment['align'] : 'none';
$size = !empty($attachment['image-size']) ? $attachment['image-size'] : 'medium';
$alt = !empty($attachment['image_alt']) ? $attachment['image_alt'] : '';
$rel = ( $url == get_attachment_link($attachment_id) );
return get_image_send_to_editor($attachment_id, $attachment['post_excerpt'], $attachment['post_title'], $align, $url, $rel, $size, $alt);
}
return $html;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- image_media_send_to_editor() WordPress function reference ...
image_media_send_to_editor( $html, $attachment_id, $attachment ). html: ( unknown_type); attachment_id: (unknown_type); attachment: (unknown_type) ...
queryposts.com - WordPress › Support » [Plugin: Flexible Upload V1.13 ...
remove_filter('media_send_to_editor', 'image_media_send_to_editor'); add_filter ('media_send_to_editor', 'fup_media_send_to_editor', 10, 3); }. and add red ...
wordpress.org - Docs for page media.php
since: 2.5.0. unknown image_media_send_to_editor (unknown_type $html, unknown_type $attachment_id, unknown_type $attachment). unknown_type $ html ...
phpdoc.wordpress.org - PHPXRef 0.7 : WordPress : Detail view of media.php
image_media_send_to_editor() get_attachment_fields_to_edit() ...
phpxref.ftwr.co.uk