Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Upload Webp to Wordpress

// add this code into your function.php file in theme editor

function webp_upload_mimes( $existing_mimes ) {
	// add webp to the list of mime types
	$existing_mimes['webp'] = 'image/webp';

	// return the array back to the function with our added mime type
	return $existing_mimes;
}
add_filter( 'mime_types', 'webp_upload_mimes' );
Comment

PREVIOUS NEXT
Code Example
Php :: Custom Product Price in Loop of Woocomare 
Php :: php start of day epoch 
Php :: gmdate in php 
Php :: laravel count group by date 
Php :: laravel redirect back with errors and input 
Php :: convert query result to array php 
Php :: how to get local current time in laravel 
Php :: deactivate auto update wordpress plugins 
Php :: simple localhost php 
Php :: set session after login with laravel 
Php :: install laravel 
Php :: how to bulk insert array into sql php 
Php :: parameterized function in php 
Php :: Laravel Error Log, How to check Error Log in Laravel 
Php :: carbon get time 
Php :: wp php redirect my account page url to custom url 
Php :: php check if any of multiple values in array 
Php :: php check connection to database 
Php :: create foreign key laravel migration 
Php :: php mac address 
Php :: log data into file php 
Php :: wordpress get post body 
Php :: how to add values to an array in laravel 
Php :: how to play sound with php 
Php :: how to set date in php 
Php :: php date + 30 days 
Php :: cambiar entre versiones de php linux 
Php :: enable gd php 
Php :: laravel multiple orderby 
Php :: php color generator 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =