AnsPress_Init::create_blog( integer $blog_id )
Description #
Creating table whenever a new blog is created
Parameters #
- $blog_idinteger (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(); } }
Expand full source code Collapse full source code View on GitHub: anspress-question-answer.php:609
Add your comment