WPIntell

Source evidence

Remove – and 0-9 from alt images on output

Seo Optimized Images · support · 2016-12-22T22:13:00+00:00

mixedsentiment
highseverity
0.88relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 34 rows with source links

14.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
grimmothy resolved
Hi @priyanshumittal , Great plugin. I have added the code above it works to remove all (-). Is there a way to also remove all numbers in addition to dashes? (0-9)? I found this line of code $image_file_name = str_replace('-',' ',$get_file_name['filename']); Is this what I need to adjust? if so, how do I change this this in order to replace all numbers with blank. Thanks Hi grimmothy, Yes you did it right for removing the dashes from the file name,now for removing numbers [0-9] add the following code after the lines of code, you added $image_file_name = preg_replace(‘/\d/’, ”, $image_file_name ); Regards Prakash hi @prakashgahlot , But looks like ai reveived a fatal error response on the addition of code Fatal error: Undefined constant 'd' in /home/mirabalp/public_html/wp-content/plugins/seo-optimized-images/seo-optimized-images.php on line 90 Anything I should do different? Thanks. $image_file_name = preg_replace('/[0-9]+/', '', $image_file_name ); the above code fixed this. Now i am trying to remove the space after the numbers Hi grimmothy, Please send me your website url link and screenshot of where you find issues. than i will check what the issue occurred. Thanks, Prakash Are you still using this plugin. Is your Query resolved, not heard a call from a month. Closing this ticket for while, kindly reopen it if you still need help. Regards Priyanshu

Comments

5 shown
prakash.gahlot 2016-12-23T12:30:00+00:00

Hi grimmothy, Yes you did it right for removing the dashes from the file name,now for removing numbers [0-9] add the following code after the lines of code, you added $image_file_name = preg_replace(‘/\d/’, ”, $image_file_name ); Regards Prakash

grimmothy 2016-12-23T16:11:00+00:00

hi @prakashgahlot , But looks like ai reveived a fatal error response on the addition of code Fatal error: Undefined constant 'd' in /home/mirabalp/public_html/wp-content/plugins/seo-optimized-images/seo-optimized-images.php on line 90 Anything I should do different? Thanks.

grimmothy 2016-12-23T20:54:00+00:00

$image_file_name = preg_replace('/[0-9]+/', '', $image_file_name ); the above code fixed this. Now i am trying to remove the space after the numbers

prakash.gahlot 2016-12-26T08:45:00+00:00

Hi grimmothy, Please send me your website url link and screenshot of where you find issues. than i will check what the issue occurred. Thanks, Prakash

webriti 2017-02-02T10:10:00+00:00

Are you still using this plugin. Is your Query resolved, not heard a call from a month. Closing this ticket for while, kindly reopen it if you still need help. Regards Priyanshu