[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-admin/network/ -> edit.php (source)

   1  <?php
   2  /**
   3   * Action handler for Multisite administration panels.
   4   *
   5   * @package WordPress
   6   * @subpackage Multisite
   7   * @since 3.0.0
   8   */
   9  
  10  /** Load WordPress Administration Bootstrap */
  11  require_once  __DIR__ . '/admin.php';
  12  
  13  $action = ( isset( $_GET['action'] ) ) ? $_GET['action'] : '';
  14  
  15  if ( empty( $action ) ) {
  16      wp_redirect( network_admin_url() );
  17      exit;
  18  }
  19  
  20  /**
  21   * Fires just before the action handler in several Network Admin screens.
  22   *
  23   * This hook fires on multiple screens in the Multisite Network Admin,
  24   * including Users, Network Settings, and Site Settings.
  25   *
  26   * @since 3.0.0
  27   */
  28  do_action( 'wpmuadminedit' );
  29  
  30  /**
  31   * Fires the requested handler action.
  32   *
  33   * The dynamic portion of the hook name, `$action`, refers to the name
  34   * of the requested action derived from the `GET` request.
  35   *
  36   * @since 3.1.0
  37   */
  38  do_action( "network_admin_edit_{$action}" );
  39  
  40  wp_redirect( network_admin_url() );
  41  exit;


Generated : Tue Apr 23 08:20:01 2024 Cross-referenced by PHPXref