[Plugin: Convert Post Types] Call clean_post_cache / clean_page_cache after conversion?
-
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();
- The topic ‘[Plugin: Convert Post Types] Call clean_post_cache / clean_page_cache after conversion?’ is closed to new replies.