wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
insert_blog is deprecated since version 5.1.0!
Alternative: Ver página de detalhe para wp_insert_site »" href="https://pt.wpseek.com/function/wp_insert_site/">wp_insert_site()
Alternative: Ver página de detalhe para wp_insert_site »" href="https://pt.wpseek.com/function/wp_insert_site/">wp_insert_site()
insert_blog › WordPress Function
Desde
Obsoleto5.1.0
› insert_blog ( $domain, $path, $site_id )
Parâmetros: (3) |
|
Ver: | |
Retorna: |
|
Definido em: |
|
Codex: | |
Log de mudanças: |
|
Store basic site info in the blogs table.
This function creates a row in the wp_blogs table and returns the new blog's ID. It is the first step in creating a new blog.Funções relacionadas: install_blog, add_user_to_blog, add_new_user_to_blog, insert_hooked_blocks, wp_insert_post
Fonte
function insert_blog($domain, $path, $site_id) { _deprecated_function( __FUNCTION__, '5.1.0', 'wp_insert_site()' ); $data = array( 'domain' => $domain, 'path' => $path, 'site_id' => $site_id, ); $site_id = wp_insert_site( $data ); if ( is_wp_error( $site_id ) ) { return false; } clean_blog_cache( $site_id ); return $site_id; }