twentyseventeen_should_show_featured_image

FUNCTION wp-content\themes\twentyseventeen\functions.php (ligne 694) github
Shows the featured image below the header on single posts and pages, unless the page is the front page. Uses the filter `twentyseventeen_should_show_featured_image` in a child theme or plugin to change when the image is shown. This example prevents the image from showing:     add_filter(         'twentyseventeen_should_show_featured_image',         '__return_false'     );

Paramètres

Entrée :
N/A
Sortie :
@return bool Whether the post thumbnail should be shown.

Utilisation

// Utilisation de la fonction twentyseventeen_should_show_featured_image
$result = twentyseventeen_should_show_featured_image();

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...