How to intercept Post Title on Post-Save
I am new to WP and I couldn’t find this solution by myself. this is my function, function explodetitletotags() { global $post; $title = $post->post_title; $tags = explode(‘ ‘, preg_replace(‘/[^\p{L}0-9 ]/’, ‘ ‘, $title)); foreach $tags as $tag { global $post; $thePostID = $post->ID; wp_add_post_tags($thePostID, $tag); } } add_action(‘publish_post’, ‘explodetitletotags’); The Function works like a … Read more