WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

wpseo_on_activate_blog() Yoast 1.0

Run wpseo activation routine on creation / activation of a multisite blog if WPSEO is activated network-wide.

Will only be called by multisite actions.

{@internal Unfortunately will fail if the plugin is in the must-use directory. https://core.trac.wordpress.org/ticket/24205}}

Хуков нет.

Возвращает

null. Ничего.

Использование

wpseo_on_activate_blog( $blog_id );
$blog_id(int|WP_Site) (обязательный)
Blog ID.

Код wpseo_on_activate_blog() Yoast 17.2

function wpseo_on_activate_blog( $blog_id ) {
	if ( ! function_exists( 'is_plugin_active_for_network' ) ) {
		require_once ABSPATH . 'wp-admin/includes/plugin.php';
	}

	if ( $blog_id instanceof WP_Site ) {
		$blog_id = (int) $blog_id->blog_id;
	}

	if ( is_plugin_active_for_network( WPSEO_BASENAME ) ) {
		switch_to_blog( $blog_id );
		wpseo_activate( false );
		restore_current_blog();
	}
}