This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getTwitterAvatar( $username, $size = "normal" ) { | |
// mini = 24px, normal = 48px, bigger = 73px | |
$sizes = array( "mini", "normal", "bigger" ); | |
// Check for size, default to normal | |
if( in_array( $size, $sizes ) ) { | |
$variant = $size; | |
} else { | |
$variant = "normal"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* WordPress filters to remove default image sizes and add custom sizes. | |
* Replace PREFIX with your theme's prefix as necessary. | |
* Regenerate thumbnails after adding this to your theme's functions.php file. | |
*/ | |
// This function unsets the default image sizes | |
function PREFIX_remove_default_image_sizes( $sizes ) { | |