Support » Plugin: Jetpack - WP Security, Backup, Speed, & Growth » Post By Email to Custom Post Type

  • This functionality does not appear to be available out of the box. Can someone please advise on how to extend the plugin to post to custom post type from an email.

    I tried this…

    function custom_type_by_mail($post_id){
    
    	error_log('CUSTOM TYPE BY MAIL RAN');
    
        $p = get_post($post_id,'ARRAY_A');
        $p['post_type'] = "mycustomposttype";
        wp_update_post($p);
    }
    
    add_action('publish_phone','custom_type_by_mail');

    But the action does not get triggered when Post By Email makes the post.

    http://wordpress.org/extend/plugins/jetpack/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Post By Email to Custom Post Type’ is closed to new replies.