Tag Info

New answers tagged


You can use is_admin() in conjunction with the admin global variable $pagenow to make sure you're not on either the upload or media page: function remove_images( $where ) { global $wpdb, $pagenow; if( is_admin() && in_array( $pagenow, array( 'upload.php', 'media-upload.php' ) ) { return $where } $where .= " AND ...


I have also been looking into hosting my Wordpress blog's images in a third party service, and have a plugin helping me seamlessly integrate this strategy. I found these options: WP Imgur plugin, wordpress.org/plugins/wp-imgur and github.com/dsawardekar/wp-imgur: synchronizes your wordpress pictures with imgur S3 + Cloudfront: Amazon S3 (not free) will ...


This might do the trick! css: .media-sidebar .details .edit-attachment { display: none; } .media-sidebar .details .delete-attachment { display: none; } And this: foreach( array( 'post.php', 'post-new.php' ) as $hook ) add_action( "admin_print_styles-$hook", 'admin_styles_so_25894288'); function admin_styles_so_25894288() { global ...


The hook is media_send_to_editor. From the source of core. apply_filters ( 'media_send_to_editor', string $html, int $send_id, array $attachment  ) Filter the HTML markup for a media item sent to the editor.


Did yoy check the image height is it more than 1000px. Because if the height is less than ur specified one it will use the current size of the image.

Top 50 recent answers are included