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 | |
/** | |
* Remove standard image sizes so that these sizes are not | |
* created during the Media Upload process. | |
* Note: these sizes will appear "disabled" in the Media Uploader | |
* | |
* Hooked to intermediate_image_sizes_advanced filter | |
* See wp_generate_attachment_metadata( $attachment_id, $file ) in wp-admin/includes/image.php | |
* | |
* @param $sizes, array of default and added image sizes |
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 | |
/** | |
* Filter callback to add image sizes to Media Uploader | |
* | |
* WP 3.3 pre-beta adds a new filter 'image_size_names_choose' to | |
* the list of image sizes which are displayed in the Media Uploader after an image | |
* has been uploaded. | |
* | |
* See image_size_input_fields() in wp-admin/includes/media.php | |
* |
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 | |
add_action( 'all', create_function( '', 'var_dump( current_filter() );' ) ); |
NewerOlder