WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1315 | * Allows to determine the default autoload value for an option where no explicit value is passed. |
| 1316 | * |
| 1317 | * @since 6.6.0 |
| 1318 | * |
| 1319 | * @param bool|null $autoload The default autoload value to set. Returning true will be set as 'auto-on' in the |
| 1320 | * database, false will be set as 'auto-off', and null will be set as 'auto'. |
| 1321 | * @param string $option The passed option name. |
| 1322 | * @param mixed $value The passed option value to be saved. |
| 1323 | */ |
| 1324 | $autoload = apply_filters( 'wp_default_autoload_value', null, $option, $value, $serialized_value ); |
| 1325 | if ( is_bool( $autoload ) ) { |
| 1326 | return $autoload ? 'auto-on' : 'auto-off'; |
| 1327 | } |
| 1328 | |
| 1329 | return 'auto'; |
| 1330 | } |
| 1331 | |
| 1332 | /** |
| 1333 | * Filters the default autoload value to disable autoloading if the option value is too large. |