WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 3 years ago

#14630 closed feature request (worksforme)

Text Replacement for Featured Image Link

Reported by: jghazally Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Post Thumbnails Keywords: close
Focuses: Cc:

Description

Hi There, Just been doing some media gallery integration for WP e-Commerce Plugin. We use the featured Image as the Product Thumbnail / Image. For our new version that uses custom post types. We've got it almost all integrated. However we wanted to change the link in the Media Uploader from saying 'Use as Featured Image' to 'Use as Product Thumbnail' but could not find a filter in the media.php file to allow this customization.

I have added a patch that does just this and I think it would be great for any developer using custom post types and wanting to use the featured image system for their custom post type as It allows a little more customization with the wording..

I know media gallery is going to be looked into in up coming big release, but thought this little addition could be handy in next minor release?

best
jeff

Attachments (4)

Featured_product.diff (1.2 KB) - added by jghazally 4 years ago.
Featured_product.2.diff (932 bytes) - added by jghazally 4 years ago.
Featured_product.3.diff (932 bytes) - added by jghazally 4 years ago.
wp_featured_product.diff (1.2 KB) - added by jghazally 4 years ago.

Download all attachments as: .zip

Change History (9)

jghazally4 years ago

comment:1 jghazally4 years ago

Whoops sorry I made a mistake in the new diff works a little better.

best
Jeff

comment:2 jghazally4 years ago

Im such a n00b, sorry guys wp_featured_product.diff is the real diff... the others are my wp-e-commerce plugin diffs *sorry*

comment:3 nacin4 years ago

  • Keywords close added; Post Thumbnail media gallery featured featured images removed

I don't think we should be doing anything with the media screens if we can help it, until 3.2.

Translations can be filtered. Check out the translate() function, it has a filter called gettext. Make sure you only attach the filter on the specific screen you need it. I would attach it on a late action, then remove it whe done, to avoid unnecessary cycles.

http://blog.ftwr.co.uk/archives/2010/01/02/mangling-strings-for-fun-and-profit/

comment:4 jghazally4 years ago

Excellent that worked a treat, thank you nacin for your speedy reply :) have yourself a great day.

comment:5 nacin3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.