Please tell me, how can I fetch the post title and append it into the content of that post when I click the publish button?
Thank you!
Please tell me, how can I fetch the post title and append it into the content of that post when I click the publish button?
Thank you!
You must be logged in to post a comment.
The
wp_insert_post_data
filter allows you to manipulate the post data before it is inserted in the database:You would need to access save_post hook that’s being triggered after creating/updating page. It would look something like below: