Search for images that width and height is more than 500
You can run your $matches through the getimagesize() function to check it’s dimensions, the problem is this function requires a path to the image but your content will provide full URL’s so you’ll need to see if the image is also saved in your media library and if so grab the relative path only. If … Read more