PHP Класс Rarst\Fragment_Cache\Gallery_Cache

Наследование: extends Rarst\Fragment_Cache\Fragment_Cache
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$original_shortcode mixed Callback originally registered for gallery shortcode.

Открытые методы

Метод Описание
disable ( )
enable ( )
gallery_shortcode ( array $args ) : string Fetch and return cached gallery.
get_attachment_ids ( ) : array Retrieve array of attachment IDs for current post.

Защищенные методы

Метод Описание
callback ( string $name, array $args ) : string Set up post context and generate gallery output.

Описание методов

callback() защищенный Метод

Set up post context and generate gallery output.
protected callback ( string $name, array $args ) : string
$name string Fragment name.
$args array Arguments.
Результат string

disable() публичный Метод

public disable ( )

enable() публичный Метод

public enable ( )

get_attachment_ids() публичный Метод

Retrieve array of attachment IDs for current post.
public get_attachment_ids ( ) : array
Результат array

Описание свойств

$original_shortcode защищенное свойство

Callback originally registered for gallery shortcode.
protected mixed $original_shortcode
Результат mixed