Свойство | Тип | Описание | |
---|---|---|---|
$attachments | array | Cached set of attachments for multiple posts. | |
$charset | string | Holds blog charset value for use in DOM parsing. | |
$home_url | string | Holds the home_url() value to speed up loops. | |
$host | string | Holds site URL hostname. | |
$scheme | string | Holds site URL protocol. |
Метод | Описание | |
---|---|---|
__construct ( ) | Set up URL properties for reuse. | |
cache_attachments ( ) | Cache attached images and thumbnails for a set of posts. | |
get_images ( object $post ) : array | Get set of image data sets for the given post. | |
get_term_images ( object $term ) : array |
Метод | Описание | |
---|---|---|
get_absolute_url ( string $src ) : string | Make absolute URL for domain or protocol-relative one. | |
get_content_galleries ( string $content ) : array | Retrieves galleries from the passed content. | |
get_image_item ( WP_Post $post, string $src, string $title = '', string $alt = '' ) : array | Get image item array with filters applied. |
Метод | Описание | |
---|---|---|
image_url ( integer $post_id ) : string | Get attached image URL. Adapted from core for speed. | |
parse_galleries ( string $content, integer $post_id ) : array | Parse gallery shortcodes in a given content. | |
parse_html_images ( string $content ) : array | Parse tags in content. |
public cache_attachments ( ) |
protected get_absolute_url ( string $src ) : string | ||
$src | string | URL to process. |
Результат | string |
protected get_content_galleries ( string $content ) : array | ||
$content | string | Content to parse for shortcodes. |
Результат | array | A list of arrays, each containing gallery data. |
public get_images ( object $post ) : array | ||
$post | object | Post object to get images for. |
Результат | array |
public get_term_images ( object $term ) : array | ||
$term | object | Term to get images from description for. |
Результат | array |
protected array $attachments | ||
Результат | array |
protected string $charset | ||
Результат | string |
protected string $home_url | ||
Результат | string |