wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
get_post_gallery › WordPress Function
Da3.6.0
Deprecaton/a
› get_post_gallery ( $post = 0, $html = true )
| Parametri: (2) |
|
| Ritorna: |
|
| Definito a: |
|
| Codex: |
Checks a specified post's content for gallery and, if present, return the first
Funzioni correlate: get_post_galleries, get_post_gallery_images, get_post_galleries_images, get_post_ancestors, get_post_parent
Sorgenti
function get_post_gallery( $post = 0, $html = true ) {
$galleries = get_post_galleries( $post, $html );
$gallery = reset( $galleries );
/**
* Filters the first-found post gallery.
*
* @since 3.6.0
*
* @param array $gallery The first-found post gallery.
* @param int|WP_Post $post Post ID or object.
* @param array $galleries Associative array of all found post galleries.
*/
return apply_filters( 'get_post_gallery', $gallery, $post, $galleries );
}