woocommerce_printable_order_receipt_css

FILTER woocommerce\src\Internal\ReceiptRendering\ReceiptRenderingEngine.php (ligne 199) github
Filter to customize the CSS styles used to render the receipt. See Templates/order-receipt.php for guidance on the existing HTMl elements and their ids. See Templates/order-receipt-css.php for the original CSS styles.

Paramètres

Entrée :
$css, $order
Sortie :
@param string $css The original CSS styles to use.
@param WC_Abstract_Order $order The order for which the receipt is being generated.
@return string The actual CSS styles that will be used.

Utilisation

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

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

Actualités

Chargement des actualités...