I am working on a Wordpress theme that hides the default WYSIWYG editor and replaces it with a custom module system which is fine and dandy, but I've come to the realisation if someone were to use the theme on a pre-existing site they wouldn't be able to access their previously entered content which is obviously bad.
So basically what I need to do is check if a pre-existing page is loaded (via a hook hopefully) and then move that content over to the newer module system which stores data in custom fields. Is there an easy way of detecting if the post editing screen is being loaded for an already created page?
I can't rely on the post_status of "published" because I need to account for drafts and scheduled pages as well. Perhaps simply checking if a page has a title is enough to distinguish a new page from an already created page?
The below fictional code describes that I want to be able to do:
if [on page editing screen and page is pre-existing and has content]
then
Import the default the_editor content into a custom field