MasterPress 1.3.1 is a compatibility release for PHP 8 and WordPress 5.7. It still remains backwards compatible with older PHP versions.
- WOOF_Image The image at the path provided
A preset on the WOOF::theme_image to return a WOOF_Image object representing an image file at the path given, relative to the parent theme directory of the active theme, appended to a default base directory of “img” inside your theme.
This can be really useful for displaying images stored inside your theme folder, opening up the rich image processing API of the WOOF_Image object to those images.
The path of the file relative to the directory of the active theme, plus the base directory in the second argument.
String $base_dir = "images"
The base directory of the image file inside the active directory. This defaults to “images” to reflect a common folder name for images in your theme.