<unique_prefix>_network_settings_mainsite

The WordPress Core unique prefix network settings mainsite hook.

Description

do_action( '<unique_prefix>_network_settings_mainsite', (unknown) $this_opt ); 

Parameters (1)

0. $this_opt (unknown)
The this opt.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( '{$unique_prefix}_network_settings_mainsite', $this_opt ); 
The following example is for adding a hook callback.
  1. // define the <unique_prefix>_network_settings_mainsite callback 
  2. function action_unique_prefix_network_settings_mainsite( $this_opt ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "{$unique_prefix}_network_settings_mainsite", 'action_unique_prefix_network_settings_mainsite', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "{$unique_prefix}_network_settings_mainsite", 'action_unique_prefix_network_settings_mainsite', 10, 1 ); 

Defined (1)

The action is defined in the following location(s).

/class.bcn_network_admin.php  
  1. do_action($this->unique_prefix . '_network_settings_mainsite', $this->opt);