Title: wp_autoload_values_to_autoload
Published: July 16, 2024
Last modified: May 20, 2026

---

# apply_filters( ‘wp_autoload_values_to_autoload’, string[] $autoload_values )

## In this article

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

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

Filters the autoload values that should be considered for autoloading from the options
table.

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

The filter can only be used to remove autoload values from the default list.

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

 `$autoload_values`string[]

Autoload values used to autoload option.
 Default list contains `'yes'`, `'on'`,`'
auto-on'`, and `'auto'`.

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

    ```php
    $filtered_values = apply_filters( 'wp_autoload_values_to_autoload', $autoload_values );
    ```

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

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

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

Returns the values that trigger autoloading from the options table.

  |

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

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

## User Contributed Notes

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