Skip to content

Instantly share code, notes, and snippets.

@iftee
iftee / wp-remove-default-image-sizes.php
Last active May 6, 2021
Custom filter to remove default image sizes (WordPress and WooCommerce) from your theme.
View wp-remove-default-image-sizes.php
<?php
/*
* Custom filter to remove default image sizes from WordPress.
*/
/* Add the following code in the theme's functions.php and disable any unset function as required */
function remove_default_image_sizes( $sizes ) {
/* Default WordPress */
unset( $sizes[ 'thumbnail' ]); // Remove Thumbnail (150 x 150 hard cropped)
@wgh000
wgh000 / province.php
Last active May 18, 2021
Province Italia - Array PHP
View province.php
<?php
$province= array(
'AG' => 'Agrigento',
'AL' => 'Alessandria',
'AN' => 'Ancona',
'AO' => 'Aosta',
'AR' => 'Arezzo',
'AP' => 'Ascoli Piceno',
'AT' => 'Asti',
'AV' => 'Avellino',