• Resolved wnihq2022

    (@wnihq2022)


    Hey guys. This is a great plugin. I was just wondering if there is any way to customise the way the attribution is automatically added to the caption?

    Instead of ‘Photo by USER on Unsplash’

    Could I set it to:

    ‘? USER’

    (and without the automatic link so it is just text for the user name?)

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I was asking for same thing regarding translation of the string but no help. Probably it is not possible.

    Plugin Author Darren Cooney

    (@dcooney)

    I’ll look at improving this as it isn’t really filterable at the moment.

    Plugin Author Darren Cooney

    (@dcooney)

    Hi everyone.

    FYI – the new 6.0.1 release includes a new instant_images_attribution hook for modifying the attribution text. I’ll be writing docs for this soon, but it accepts 5 template tags. If you try this, let me know if it helps.

    add_filter( 'instant_images_attribution', function() {
    	return __( 'This <a href="{image_url}">photo</a> is by <a href="{user_url}">{username}</a> and available for free on <a href="{provider_url}">{provider}</a>', 'framework' );
    } );
    Thread Starter wnihq2022

    (@wnihq2022)

    Hey thanks a lot. This works great and exactly what I was looking for!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change automatic photo attribution default text’ is closed to new replies.