Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



switch_blog ›

Seit5.4.0
Veraltetn/v
do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'switch' )
Parameter: (3)
  • (int) $new_blog_id New blog ID.
    Erforderlich: Ja
  • (int) $prev_blog_id Previous blog ID.
    Erforderlich: Ja
  • (string) $context Additional context. Accepts 'switch' when called from switch_to_blog() or 'restore' when called from restore_current_blog().
    Erforderlich: Ja
Definiert in:
Codex:

Fires when the blog is switched.





Quellcode

do_action( 'switch_blog', $new_blog_id, $prev_blog_id, 'switch' );