Title: alloptions
Published: November 20, 2017
Last modified: April 28, 2025

---

# apply_filters( ‘alloptions’, array $alloptions )

## In this article

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

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

Filters all options after retrieving them.

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

 `$alloptions`array

Array with all options.

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

    ```php
    return apply_filters( 'alloptions', $alloptions );
    ```

[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#L661)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/option.php#L661-L661)

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

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

Loads and caches all autoloaded options, if available or all options.

  |

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

| Version | Description | 
| [4.9.0](https://developer.wordpress.org/reference/since/4.9.0/) | Introduced. |

## User Contributed Notes

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