Support » Plugin: Convert Post Types » [Plugin: Convert Post Types] Call clean_post_cache / clean_page_cache after conversion?

  • atow

    (@atow)


    After converting the post type, you should call either clean_post_cache or clean_page_cache on the converted post. For instance:


    endforeach;

    if ( $_POST['post_type'] == 'page' ) {
    clean_page_cache( $item->ID );
    } else {
    clean_post_cache( $item->ID );
    }
    }
    $wp_rewrite->flush_rules();

    http://wordpress.org/extend/plugins/convert-post-types/

  • The topic ‘[Plugin: Convert Post Types] Call clean_post_cache / clean_page_cache after conversion?’ is closed to new replies.