get_post_gallery

get_post_gallery

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('get_post_gallery') is found 1 times:

  • /wp-includes/media.php line 5215
    	 * @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 );
    }
    
    /**
     * Retrieves the image srcs from galleries from a post's content, if present.
     *
     * @since 3.6.0