Can PHP extract a filename from a string & use it to delete a WordPress file?
How can we check if a string, which contains words has a URL that starts with something like https://example.com/wp-content/uploads/Chat/... If it matches, then extract the child directory and the filname filename, and then delete the file from server. For example,…