Hot answers tagged

1

Deleting an image from the WordPress media library will remove the image from the website completely. It will no longer be available to any posts, pages or other content that referenced it.


1

So I've found this WP_Image_Editor in the CodeX. Basically by adding the code below it should automatically resize an image :) Code: $image = wp_get_image_editor( 'cool_image.jpg' ); // Return an implementation that extends WP_Image_Editor if ( ! is_wp_error( $image ) ) { $image->resize( 300, 300, true ); $image->save( 'new_image.jpg' ); } ...


1

It's not a tab but you might be able to get started with an upload button. Check out pre-upload-ui and some actions that follow. Namely pre-plupload-upload-ui and post-upload-ui. This will add a couple buttons to the 'Upload Files' tab and to 'Media > Add New'. BUTTONS add_action( 'pre-plupload-upload-ui', 'wpse_20160202_pre_plupload_upload_ui' ); ...



Only top voted, non community-wiki answers of a minimum length are eligible