woocommerce_thankyou_order_received_title

FILTER woocommerce\src\Blocks\BlockTypes\OrderConfirmation\Status.php (ligne 86) github
Filter the title shown after a checkout is complete.

Paramètres

Entrée :
esc_html__( 'Order cancelled', 'woocommerce'
Sortie :
@param string         $title The title.
@param WC_Order|false $order The order created during checkout, or false if order data is not available.

Utilisation

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

function ma_fonction_filtre(esc_html__( 'Order cancelled') {
    // Modifier la valeur
    return esc_html__( 'Order cancelled';
}

Actualités

Chargement des actualités...