manage_{$this->screen->id}_custom_column

ACTION woocommerce\src\Internal\Admin\Orders\ListTable.php (ligne 197) github
Fires for each custom column in the Custom Order Table in the administrative screen.

Paramètres

Entrée :
$column_name, $order
Sortie :
@param string    $column_name Identifier for the custom column.
@param \WC_Order $order       Current WooCommerce order object.

Utilisation

// Ajouter une fonction au hook action 'manage_{$this->screen->id}_custom_column'
add_action('manage_{$this->screen->id}_custom_column', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($column_name, $order) {
    // Votre code ici
    error_log('Hook manage_{$this->screen->id}_custom_column déclenché');
}

Actualités

Chargement des actualités...