Created
May 6, 2013 21:15
-
-
Save billerickson/5528267 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Customize Gallery Metabox Image Output | |
* | |
* @param string $output | |
* @param string $image_url | |
* @param object $image, post object | |
* @return string $output | |
*/ | |
function be_new_image_markup( $output, $image_url, $image ) { | |
$output = '<img src="' . $image_url . '" alt="' . esc_attr( $image->post_title ) . '" rel="' . esc_attr( $image->ID ) . '" title="' . esc_attr( $image->post_content ) . '" /> '; | |
return $output; | |
} | |
add_filter( 'be_gallery_metabox_output', 'be_new_image_markup', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment