AnsPress_Init::create_blog( integer $blog_id )

Description #

Creating table whenever a new blog is created

Parameters #

  • $blog_id
    integer (Required) Blog id.

Source #

File: anspress-question-answer.php

		public static function create_blog( $blog_id ) {
			if ( is_plugin_active_for_network( plugin_basename( __FILE__ ) ) ) {
				switch_to_blog( $blog_id ); // @codingStandardsIgnoreLine
				require_once __DIR__ . '/activate.php';
				AP_Activate::get_instance( true );
				restore_current_blog();
			}
		}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment