During activation of the plugin I'm writing, I insert a custom page. I can add post_content using the wp_insert_post command, which seems like a reasonable way to add a limited amount of content.
However, I would like to add a full page of code. Is there a way, such as perhaps linking to a separate file, to insert significant amounts of content? I've tried 'post_content' => '<link rel="import" href="./test.html">' but that doesn't seem to work.
Has anyone found a way to do this other than putting all the code directly into the array?
Browse other questions tagged pages wp-insert-post post-content or ask your own question.
Is there a way to have information on one page automatically feed into another?
Is there a way to schedule changes to a page?