• Good Idea! ?? What I was looking for.

    Unfortunely it doesn’t work with custom post type. Is it true or is not possible to use wp_insert_post_data on Custom Post Types?

    Any idea?

    UPDATE:

    I edited line 687 with:
    'post_type' => 'videos', (the custom type i'm using) but nothing happens. :\

Viewing 1 replies (of 1 total)
  • Plugin Author Will Brubaker

    (@willthewebmechanic)

    Automattic Happiness Engineer

    Hey sebacar,

    Thanks for the feedback!

    No, this plugin doesn’t have any support for custom post types. I am happy to give that some consideration for a future version. There is no reason that the WordPress filter wp_insert_post_data wouldn’t work with custom post types.

    As for your edit – There is at least one more place where a similar edit would need to be made and that would be line 407. In addition to that, if the post editor for post_type of ‘video’ doesn’t use the default nonce (a security feature) then the is_nonce_valid method would have to be adjusted as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Works Great but….’ is closed to new replies.