update wpro.php to add a filter to get_attached_file