wp_default_autoload_value

FILTER wp-includes\option.php (ligne 1333) github
Allows to determine the default autoload value for an option where no explicit value is passed.

Paramètres

Entrée :
null, $option, $value, $serialized_value
Sortie :
@param bool|null $autoload The default autoload value to set. Returning true will be set as 'auto-on' in the
@param string    $option   The passed option name.
@param mixed     $value    The passed option value to be saved.

Utilisation

// Modifier la valeur avec le filtre 'wp_default_autoload_value'
add_filter('wp_default_autoload_value', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(null) {
    // Modifier la valeur
    return null;
}

Actualités

Chargement des actualités...