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 | |
/** | |
* Move script(s) to bottom | |
* | |
* @param string|array $script_handles Script handles to be moved to bottom | |
* @param array $args Additional arguments. Defaults to array( 'move_deps' => false ). Set to true to also move scripts dependencies. | |
*/ | |
function h1_move_script_to_bottom( $script_handles, $args = array() ) { | |
$defaults = array( |
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
/* | |
How to prevent users from using full size images by removing | |
the full image size option from WordPress image dialog. | |
*/ | |
function h1_remove_full_image_size( $sizes ) { | |
unset( $sizes['full'] ); | |
return $sizes; | |
} | |
add_filter( 'image_size_names_choose', |