3 stars because it runs well and does what it shouldn’t do for SEO The plugin has potential. It would just have to use the attachment data from the media database and update the file name when the data in the media database changes.
An example:
The image that the url should have:
https://site.com.br/wp-content/uploads/2020/06/image-name.jpg
Stays like this:
https://site.com.br/wp-content/uploads/2020/06/image-name-rotated.jpg
This is making it difficult to import products into woocommerce by spreadsheet
Does anyone know why to change the name in these cases?
]]>// First step of cleanup using WP core function
$friendly_filename = remove_accents( $filename );
// begin Alex remove dimensions (ex. 1200x630.png)
$dimension_pattern = '/([0-9][0-9]*[xX][0-9][0-9]*)([\._-])/';
$dimension_replace = '${2}';
$friendly_filename = preg_replace( $dimension_pattern,
$dimension_replace, $friendly_filename );
// end Alex remove dimensions
// Replacing additional characters
$friendly_filename = preg_replace( $original_chars,
$sanitized_chars, $friendly_filename );
See comment https://www.ads-software.com/support/topic/remove-numbers-on-end-of-file-name/ by @bkjproductions
]]>I’m using the “Use images currently in Media Library” but with this name replace the images are not find.
ie:
image name from file: ‘foretti powerdrill Z4 luminosi_P1.jpg’
converted to: ‘foretti-powerdrill-Z4-luminosi_P1.jpg’
I’m not a php writer, but I’ve already tried htmlentities, urlencode, and also str_replace with ‘%20′, but it adds only ’20’
do you have any suggestion ?
thanks in advance,
best regards
I’m sorry for my poor English language.
I want to make one image gallery.
If you click on one image, is possible to send image name using Contact form 76?
Thank you!