Rename Featured Image After Upload

This topic contains 1 reply and 2 voices, and was last updated by Tareq Hasan 10 years ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
March 18, 2014 at 5:28 pm 16854
Tareq Hasan Hello, how can I rename the Featured Image after it has been uploaed? I like to rename it with the title of my Post. How does that work, is there Hook or something to do this right after posting the post? Cheers, Denis
March 19, 2014 at 12:17 pm 16897
Tareq Hasan Tareq Hasan

Hooks http://docs.wedevs.com/category/plugins/wp-user-frontend-pro/developer-documentation/actions/

Use wpuf_add_post_after_insert. So you’ve the post id, fetch the featured image ID of that post and update the featured image title with the post title.

Viewing 1 Posts - 1 through 1 (of 1 total)