Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cottoncandy_modify_attachment_link( $markup ) {
- global $post;
- return str_replace( '<a href', '<a class="view" rel="galleryid-'. $post->ID .'" href', $markup );
- }
- add_filter( 'wp_get_attachment_link', 'cottoncandy_modify_attachment_link' );
Add Comment
Please, Sign In to add comment