WordPress.org

Ready to get started?Download WordPress

Forums

Live Drafts
how to add custom post types to this plugin (2 posts)

  1. megabulk2
    Member
    Posted 1 year ago #

    Change line 44

    if (in_array($post->post_type, array('post', 'page')) && $post->post_status == 'publish') {

    to

    if (in_array($post->post_type, array_merge(array('post','page'), array_keys(get_post_types( array('_builtin' => false))) )) && $post->post_status == 'publish') {

    and line 68

    if (!in_array($post->post_type, array('post', 'page')) && $post->post_status == 'publish') {

    to

    if (!in_array($post->post_type, array_merge(array('post','page'), array_keys(get_post_types( array('_builtin' => false))) )) && $post->post_status == 'publish') {

    to enable this for custom post types as well.

    http://wordpress.org/extend/plugins/live-drafts/

  2. Samantha Miller.
    Member
    Posted 5 months ago #

    Thanks Megabulk2, came here looking for a custom post types solution.

    Any chance of getting this built into core?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.