<?php //Submit Blog if (acb_post('blog')) { ?> <ol> <li>Add new blog the standard way</li> <ol> <li>Do functions from lines 130-166 in wp-admin/wpmu-edit.php</li> <li>Run wpmu_create_blog from wp-includes/wpmu-functions.php</li> <li>action: wpmu_new_blog($blog_id, $user_id);</li> <li>Then run switch_to_blog($new_blog_id);do stuff; restore_current_blog();</li> <li>http://trac.mu.wordpress.org/browser/trunk/wp-includes/wp-db.php</li> </ol> <li>Add pages</li> <ol> <li>Insert Page as Post</li> <li>Insert following into postmeta</li> <li>Exclude certain pages from top menu</li> <ol> <li>post_id</li> <li>meta_key: '_wp_page_template'</li> <li>meta_value: tweets.php, maps.php, etc</li> </ol> </ol> // Insert Pages $pagesadded = array(); $toexclude = array('Home', 'Just In', 'About', 'Advertise'); foreach($blpgs as $page) { $post = array();
<?php //$home_url = get_option('siteurl'); //define('ACB_ADMIN_URL', get_option // show form or show results echo "hello"; if ($blog = acb_post('blog')) { $blcats = acb_post('blog-cats'); $blpgs = acb_post('blog-pages'); include 'acb_submit-blog.php'; } else { include 'acb_show-form.php'; }