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 |
|---|---|
| 768 | border: 2px solid #cfcfcf; |
| 769 | } |
| 770 | #{$selector} .gallery-caption { |
| 771 | margin-left: 0; |
| 772 | } |
| 773 | /* see gallery_shortcode() in wp-includes/media.php */ |
| 774 | </style>"; |
| 775 | $size_class = sanitize_html_class( $size ); |
| 776 | $gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>"; |
| 777 | $output = apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div ); |
| 778 | |
| 779 | $i = 0; |
| 780 | foreach ( $attachments as $id => $attachment ) { |
| 781 | if ( ! empty( $attr['link'] ) && 'file' === $attr['link'] ) |
| 782 | $image_output = wp_get_attachment_link( $id, $size, false, false ); |
| 783 | elseif ( ! empty( $attr['link'] ) && 'none' === $attr['link'] ) |
| 784 | $image_output = wp_get_attachment_image( $id, $size, false ); |
| 785 | else |
| 786 | $image_output = wp_get_attachment_link( $id, $size, true, false ); |