how to remove thumbnail and LiteSpeed Optimization column in media library list-view?
how to remove thumbnail and LiteSpeed Optimization column in media library list-view?
how to remove thumbnail and LiteSpeed Optimization column in media library list-view?
Media Library Grid View Custom Filter
You can do this with a three easy steps: Create a directory in your theme that will hold all the new icons /themes/theme-name/images/icons/ Copy all the images from /wp-includes/images/crystal/ to your new directory Hook into the wp_mime_type_icon filter in your functions.php file Your filter would look like this: function change_mime_icon($icon, $mime = null, $post_id = … Read more
The first thing you need to do is disable direct access to the directories the files are stored in by uploading blank index.html files to wp-content/uploads/ and all of its subdirectories. That way no one can go browsing around your upload directories finding that media manually. In order to keep search engines from crawling your … Read more
Every time you upload an image, WordPress automatically create duplicate copies of that image and re-size them to thumbnail and medium size. Most of the time, these images are not used. In addition, there could also be some images that you have uploaded, but did not use them in the post. These unused images could … Read more
premise : I am not so sure as to the exact reason of your problem, but after the comments, and considering a normal “user” level of coding expertise, I post this answer describing not the ultimate solution, but the steps that I myself would have considered when facing a similar problem. There might be better … Read more
Got home now and I had a proper look at your included image. The problem that you are experiencing is related to the naming of your images. Images, like any other files should not contain special characters as these special characters are not treated the same by operating system/file managers etc Currently, from your image, … Read more
I solved in this way add_filter( ‘media_view_strings’, ‘my_media_view_strings’); function my_media_view_strings($strings) { if (!current_user_can(‘edit_theme_options’) ){ $strings[“insertMediaTitle”] = “”; //Don’t unset! unset($strings[“insertFromUrlTitle”]); } return $strings; } //Media button click open “Create Gallery” add_action( ‘wp_enqueue_media’, ‘openGallery’ ); function openGallery(){ if (!current_user_can(‘edit_theme_options’) ) add_action( ‘admin_print_footer_scripts’,’openGallery_script’, 999); } function openGallery_script(){ ?> <script type=”text/javascript”> jQuery(function(){ jQuery(“.insert-media”).click(function (event){ var options = { … Read more
Order by the author’s display name: This is most likely by design, because the only information about the author in the wp_posts table is the author ID. We can join it with the wp_users table to get more information about the user and then modify the order accordingly. Here’s an example how we can order … Read more
Got the solution…! Use fn.state(’embed’ insted of fn.on( ‘insert’ Or use Both of them fn.state(’embed’ & fn.on( ‘insert’ fn.state(’embed’).on( ‘select’, function() { var state = fn.state(), type = state.get(‘type’), embed = state.props.toJSON(); // SHOW JSON for embeded URL console.log(’embed’+JSON.stringify(embed)); });