/* * Modify a post before it is updated * * Called whenever a post is about to be updated or published . * * @param Post $post The post being saved, by reference * @param FormUI $form The form that was submitted on the publish page */ public function action_publish_post( $post, $form ) { if( $post->content_type == Post::type( 'podcast' ) ) { $feeds = Options::get( 'podcast__feeds' ); foreach( $feeds as $feed => $feedtype ) { switch( $feedtype ) { case self::PODCAST_ITUNES: $this->get_post_itunes_settings( $form, $post, $feed ); break; } } } }