Generates paceholder images
author | etessore |
---|---|
version | 1.0.1 |
package | classes |
flush(bool $check) : \ImageGenerator
bool
false only if you don't want to delete the cache file. Useful to pass isset($_REQUEST['refresh']) in the ajax implementation
\ImageGenerator
$this for chainabilityget_all_image_sizes() : array
array
of all image sizes registered in WP
'size_name' => array(
'width' => 200,
'height' => 80,
'crop' => true
)
get_dimensions(string $media_dimensions) : array
string
the media size
array
array('width'=>'','height'=>'','crop'=>'')get_image_alt()
get_image_height()
get_image_src()
get_image_width()
get_markup() : \the
\the
html markup for the current generated imageget_rgb(string $hex) : array
string
the hex representation of the color
array
red green and blue valueshook()
image() : \ImageGenerator
\ImageGenerator
$this for chainabilityinit()
post_thumbnail_html_callback(string $html, \unknown_type $post_id, \unknown_type $post_thumbnail_id, \unknown_type $size, \unknown_type $attr)
Changes the html markup if the post thumbnail is not set
string
\unknown_type
\unknown_type
\unknown_type
\unknown_type
set(string $param, string $value) : \ImageGenerator
string
the name of the parameter
string
the value of the parameter
\ImageGenerator
$this for chainabilitysave_image() : \ImageGenerator
\ImageGenerator
$this for chainability$settings : array
$cache : array
$image : resource
$url : string