wc_logs_render_page

ACTION woocommerce\src\Internal\Admin\Logging\PageController.php (ligne 180) github
Action fires only if there is not a built-in rendering method for the current default log handler. This is intended as a way for extensions to render log views for custom handlers.

Paramètres

Entrée :
$handler
Sortie :
@param string $handler

Utilisation

// Ajouter une fonction au hook action 'wc_logs_render_page'
add_action('wc_logs_render_page', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($handler) {
    // Votre code ici
    error_log('Hook wc_logs_render_page déclenché');
}

Actualités

Chargement des actualités...