pre_add_site_option_{$option}

pre_add_site_option_{$option}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_add_site_option_{$option}') is found 1 times:

  • /wp-includes/option.php line 2140
    	 * @param mixed  $value      Value of network option.
    	 * @param string $option     Option name.
    	 * @param int    $network_id ID of the network.
    	 */
    	$value = apply_filters( "pre_add_site_option_{$option}", $value, $option, $network_id );
    
    	$notoptions_key = "$network_id:notoptions";
    
    	if ( ! is_multisite() ) {
    		$result = add_option( $option, $value, '', false );
    	} else {