It was brought to our attention that MasterPress would give a tonne of warnings and deprecation notices when used with PHP 7.4 – this update addresses those.
A preset on the WOOF::theme_image to return a WOOF_Image object representing an image file at the path given, relative to the child theme directory of the active theme appended to a default base directory of “images” 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.