Un motore di ricerca WordPress per sviluppatori e autori di temi



update_blog_public ›

Da3.0.0
Deprecaton/a
update_blog_public ( $old_value, $value )
Parametri: (2)
  • (int) $old_value
    Richiesto:
  • (int) $value The new public value
    Richiesto:
Definito a:
Codex:
ChangeLog:
  • MU

Update this blog's 'public' setting in the global blogs table.

Public blogs have a setting of 1, private blogs are 0.



Sorgenti

function update_blog_public( $old_value, $value ) {
	update_blog_status( get_current_blog_id(), 'public', (int) $value );
}