WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
758 | border: 2px solid #cfcfcf; |
759 | } |
760 | #{$selector} .gallery-caption { |
761 | margin-left: 0; |
762 | } |
763 | </style> |
764 | <!-- see gallery_shortcode() in wp-includes/media.php -->"; |
765 | $size_class = sanitize_html_class( $size ); |
766 | $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>"; |
767 | $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div ); |
768 |
|
769 | $i = 0; |
770 | foreach ( $attachments as $id => $attachment ) { |
771 | $link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, true, false); |
772 |
|
773 | $output .= "<{$itemtag} class='gallery-item'>"; |
774 | $output .= " |
775 | <{$icontag} class='gallery-icon'> |
776 | $link |