class WpvPostFormats

### Methods

## Get the first [gallery] shortcode from a string

    get_first_gallery(string | null $content, string | null $original_content, string $thumbnail_name) : array

Static

### Parameters

#### $content

`string` `null`

search string

#### $original_content

`string` `null`

content to extract the gallery from

#### $thumbnail_name

`string`

thumbnail name for the current gallery

### Returns

`array`gallery shortcode and filtered content string

## Returns the icon denoting the current post format

    get_post_format_icon(string $format) : string

Static

### Parameters

#### $format

`string`

post format name

### Returns

`string`icon name

## Get a quote from the post content

    get_the_post_format_quote(object $post) : string

Static

uses | \get_content_quote()

### Parameters

#### $post

`object`

(optional) A reference to the post object, falls back to get_post().

### Returns

`string`The quote html.

## Returns the correct thumbnail name for the current post

    get_thumb_name(array $post_data) : string

Static

### Parameters

#### $post_data

`array`

current post data as used in WpvPostFormats::process($post_data)

### Returns

`string`thumbnail name

## Post layout settings

    post_layout_info() : array

Static

### Returns

`array`filtered post layout settings

## Process the data for the current post according to its format

    process(array $post_data) : array

Static

### Parameters

#### $post_data

`array`

current post data

### Returns

`array`current post data, possibly modified for the respective post format

## Get the post format audio

    format_audio(array $post_data) : array

Static

### Parameters

#### $post_data

`array`

current post data

### Returns

`array`current post data modified for the audio post format

## Get the first gallery from the post content

    format_gallery(array $post_data) : array

Static

### Parameters

#### $post_data

`array`

current post data

### Returns

`array`current post data modified for the gallery post format

## Get the post format image

    format_image(array $post_data) : array

Static

### Parameters

#### $post_data

`array`

current post data

### Returns

`array`current post data modified for the image post format

## Get the post format quote

    format_quote(array $post_data) : array

Static

### Parameters

#### $post_data

`array`

current post data

### Returns

`array`current post data modified for the quote post format

## Standard post format

    format_standard(array $post_data) : array

Static

### Parameters

#### $post_data

`array`

current post data

### Returns

`array`current post data modified for the image post format

## Get the post format video

    format_video(array $post_data) : array

Static

### Parameters

#### $post_data

`array`

current post data

### Returns

`array`current post data modified for the video post format