add media button is not working
add media button is not working
add media button is not working
You can use sanitize_file_name hook for this. function my_sanitize_file_name( $filename ) { $chars_table = array( ‘ ‘ => ‘_’, ‘-‘ => ‘_’, ); $friendly_filename = preg_replace( array_keys( $chars_table ), array_values( $chars_table ), $filename ); return strtolower( $friendly_filename ); } add_filter( ‘sanitize_file_name’, ‘my_sanitize_file_name’, 10 ); It will also convert letters to lowercase to avoid conflicts on … Read more
This may due to the SELinux feature of the Fedora OS. You can temporarily disable the SELinux in Fedora as follows and test. Check SELinux status as sestatus If the SELinux is active, the result for the above command will be included. Current mode: enforcing Execute command sudo setenforce 0 to temporarily disable SELinux Then … Read more
Capture mediaelement events
Limit number of images to upload in wp.media function
How can I change a media attachment URL/slug, so that I can use that slug for a page?
As an alternative to the List View, you can use the Grid View by clicking the icon with 4 squares at the top of the Media Library when viewing all items. When clicking on an item, a modal will appear. It has navigation arrows at the top to left you quickly navigate items. Edits are … Read more
GD uses the function imagerotate. According to this answer on stackoverflow the function isn’t included on some OS’es because of a memory leak. This problem is also mentioned as comment in the WordPress code: On some setups GD library does not provide imagerotate() – Ticket #11536 The ticket number belongs to the WordPress Ticket #11536. … Read more
Overwrite media matching post title using WP CLI’s media import command
How to install/enable mediaelement.js plugins in WordPress