How to create content automatically when a post is published?
You can use the transition_post_status action to manipulate the post content at the time when it is published. You just need to add a function like the one below into your theme or plugin: function post_published( $new_status, $old_status, $post ) { if ( $new_status == ‘publish’ && $old_status != $new_status) { //Do whatever you want … Read more