Hey there,
quick question: I’m using this recipe to control upload image dimensions, but only want to apply it, if not uploaded on “Site options” page - is that possible somehow?
Cheers!
Hey there,
quick question: I’m using this recipe to control upload image dimensions, but only want to apply it, if not uploaded on “Site options” page - is that possible somehow?
Cheers!
Yes, you can wrap it all in an if statement:
if(!$file->page()->is(site())) {
// rest of function
}