wp_should_output_buffer_template_for_enhancement

FUNCTION wp-includes\template.php (ligne 802) github
Fires before a template file is loaded.

Paramètres

Entrée :
N/A
Sortie :
@param string $_template_file The full path to the template file.
@param bool   $load_once      Whether to require_once or require.
@param array  $args           Additional arguments passed to the template.
@param string $_template_file The full path to the template file.
@param bool   $load_once      Whether to require_once or require.
@param array  $args           Additional arguments passed to the template.
@return bool Whether the template should be output-buffered for enhancement.

Utilisation

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

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

Actualités

Chargement des actualités...