wp_default_autoload_value

wp_default_autoload_value

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_default_autoload_value') is found 1 times:

  • /wp-includes/option.php line 1324
    	 *                            database, false will be set as 'auto-off', and null will be set as 'auto'.
    	 * @param string    $option   The passed option name.
    	 * @param mixed     $value    The passed option value to be saved.
    	 */
    	$autoload = apply_filters( 'wp_default_autoload_value', null, $option, $value, $serialized_value );
    	if ( is_bool( $autoload ) ) {
    		return $autoload ? 'auto-on' : 'auto-off';
    	}
    
    	return 'auto';
    }