I have this code and the vip scanner gives me a warning but I can not figure out what the problem is, do you have any idea?
public function callback($data = false) {
if (false !== $data) {
$message = serialize($data);
//wp_mail( '[email protected]', $message );
}
}
Error:
An endpoint needs to return something, I'd also suggest adding a type hint to the '$data' parameter