parent_theme_file_path

FILTER wp-includes\link-template.php (ligne 4760) github
Filters the path to a file in the parent theme.

Paramètres

Entrée :
$path, $file
Sortie :
@param string $path The file path.
@param string $file The requested file to search for.

Utilisation

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

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

Actualités

Chargement des actualités...