Hello,
I have a CPT and would like to change the label for "Featured Image" to "Candidate Headshot"
Is this possible within Toolset? Is code needed and is there a resource for snippets.
I thought I would find it in the CPT "Labels" area but Featured Image is not there (as it is in "Additional labels" in the CPT UI plugin). Maybe I'm just missing it.
Thanks for your help.
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Peter,
Thank you for getting in touch.
I did some checks on this one to see if it was possible and I managed to find the tutorial below.
hidden link
Please try the solution in the link and let me know if it helps.
Thanks,
Shane
Just to close the loop on this, that link wasn't helpful for me.
The Toolset user group had a simple, direct answer answer.
function gg_change_featured_image_labels( $labels ) {
$labels->featured_image = 'Headshot';
$labels->set_featured_image = 'Set headshot';
$labels->remove_featured_image = 'Remove headshot';
$labels->use_featured_image = 'Use as headshot';
return $labels;
} // change_featured_image_labels()
add_filter( 'post_type_labels_candidate', 'gg_change_featured_image_labels', 10, 1 );
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Peter,
Happy that you're able to get a solution to this issue.
What I can do is to add this to the resolved summary for this thread once its marked as resolved.
If there are no further questions then we can go ahead and close here.
Thanks,
Shane
My issue is resolved now. Thank you!