Skip to content

Instantly share code, notes, and snippets.

@CasperBraske
Created June 9, 2021 20:05
Embed
What would you like to do?
Exibir campo de CPF nos pedidos do WCFM no painel do vendedor
<?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
} );
@flvargas
Copy link

Salvou meu dia esse snippet, posta seu pix aí pra eu tepagar uma cerveja brother!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment