Property | Type | Description | |
---|---|---|---|
$image_dimensions | array | Holds the image dimensions, if found. |
Method | Description | |
---|---|---|
get_header_image ( boolean $set_og_dimensions = false ) : string | Returns header image URL. | |
get_image ( string $post_id = '', array $args = [], boolean $escape = true ) : string | Fetches og:image URL. | |
get_image_from_post_thumbnail ( array $args = [] ) : string | null | Fetches image from post thumbnail. | |
get_image_from_woocommerce_gallery ( ) : array | Fetches images id's from WooCommerce gallery | |
parse_image_args ( array $args = [], array $defaults = [], boolean $get_defaults = false ) : array | Parse and sanitize image args. | |
parse_og_image ( integer $id, array $args = [] ) : string | empty | Parses OG image to correct size. | |
reparse_image_args ( array $args = [] ) : array | Reparses image args. | |
site_icon ( string $size = 'full', boolean $set_og_dimensions = false ) : string | Fetches site icon brought in WordPress 4.3.0 |
Method | Description | |
---|---|---|
__construct ( ) | Constructor, loads parent constructor. |
public get_header_image ( boolean $set_og_dimensions = false ) : string | ||
$set_og_dimensions | boolean | Whether to set size for OG image. Always falls back to the current post ID. |
return | string | The header image URL, not escaped. |
public get_image_from_woocommerce_gallery ( ) : array | ||
return | array | The image URL's. |
public reparse_image_args ( array $args = [] ) : array | ||
$args | array | required The passed arguments. |
return | array | $args parsed args. |
public array $image_dimensions | ||
return | array |