codehaven - php snippets - coding help
Generic filters
Exact matches only
  • How to upload Webp images to WordPress

    13th March 2020

    Wordpress - Miscellaneous

    wordpress category

    webp error uploading

    If you receive the error ‘Sorry, This File Type Is Not Permitted For Security Reasons’ when uploading a .webp file then this code will solve the problem.

    Add the following code to your functions.php file in your themes folder.

    Was this code snippet helpful?