Title: site_option_{$option}
Published: April 25, 2014
Last modified: February 24, 2026

---

# apply_filters( “site_option_{$option}”, mixed $value, string $option, int $network_id )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#wp--skip-link--target)

Filters the value of an existing network option.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#description)󠁿

The dynamic portion of the hook name, `$option`, refers to the option name.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#parameters)󠁿

 `$value`mixed

Value of network option.

`$option`string

Option name.

`$network_id`int

ID of the network.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#source)󠁿

    ```php
    return apply_filters( "site_option_{$option}", $value, $option, $network_id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/option.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/option.php#L2135)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/option.php#L2135-L2135)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#related)󠁿

| Used by | Description | 
| [get_network_option()](https://developer.wordpress.org/reference/functions/get_network_option/)`wp-includes/option.php` |

Retrieves a network’s option value based on the option name.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/site_option_option/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.7.0](https://developer.wordpress.org/reference/since/4.7.0/) | The `$network_id` parameter was added. | 
| [4.4.0](https://developer.wordpress.org/reference/since/4.4.0/) | The `$option` parameter was added. | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) |  | 
| [2.9.0](https://developer.wordpress.org/reference/since/2.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fsite_option_option%2F)
before being able to contribute a note or feedback.