Now that we have covered everything we need regarding the widget, the next thing on our list is creating a WordPress page, which will be a placeholder for our wall comments.
WordPress comments do not specifically need to be assigned to a post or page; they can exist on their own. However, having them assigned to a page makes it easier to follow them. Moreover, should you decide to remove all the comments at once, you would only need to delete that page.
We want to create the page at WordPress initialization. So we will use the init action just as we used it earlier.
We also want to be able to check if the page has already been created, so we will save the page ID in the options.
Let's start with modifying the init function to include page check and create code:
function WPWall_Init() { // register widget register_sidebar_widget('WP Wall', 'WPWall_Widget'); WordPress pagecreating, from code// register widget control register_widget_control...