running function during post save and adding variable to post meta
Yes, most definitely. Take this skeleton code below as a base for a function that would do what you want, and place it in your functions.php: function your_vimeo_meta_function ($post_id) { // some verifications first if ( $post_id == null || empty($_POST) ) return; if ( !isset( $_POST[‘post_type’] ) || $_POST[‘post_type’]!=’post’ ) return; if ( wp_is_post_revision( … Read more