Created
June 9, 2021 20:05
-
-
Save luiseduardobraschi/d5e1cd9dde92ee1c8d323625d796132f to your computer and use it in GitHub Desktop.
Exibir campo de CPF nos pedidos do WCFM no painel do vendedor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wcfm_order_details_after_shipping_address', function( $order ){ | |
$cpf = $order->get_meta( '_billing_cpf' ); | |
?> | |
<div><strong>CPF:</strong> <?php echo esc_html( $cpf ); ?></div> | |
<?php | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Salvou meu dia esse snippet, posta seu pix aí pra eu tepagar uma cerveja brother!