Company Logo Upload SVG/Webp
-
Hello guys!
I’m trying to able the companies upload webp/svg logos, but it’s not working. I added this code, but nothing happens:
function filter_allowed_mime_types( $allowed_mime_types, $field ) { if ( 'company_logo' === $field ) { $allowed_mime_types = [ 'jpg|jpeg|jpe' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'webp' => 'image/webp', 'svg' => 'image/svg', ]; } else { $allowed_mime_types = [ 'jpg|jpeg|jpe' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'webp' => 'image/webp', 'svg' => 'image/svg', 'pdf' => 'application/pdf', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'mp4' => 'video/mp4', ]; } return $allowed_mime_types; } add_filter( 'job_manager_mime_types', 'filter_allowed_mime_types', 10, 2 );
Someone can help me? JPG, PNG works fine… but svg and webp not!
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Company Logo Upload SVG/Webp’ is closed to new replies.