Skip to content

Instantly share code, notes, and snippets.

@luiseduardobraschi
Created June 9, 2021 20:05
Show Gist options
  • Save luiseduardobraschi/d5e1cd9dde92ee1c8d323625d796132f to your computer and use it in GitHub Desktop.
Save luiseduardobraschi/d5e1cd9dde92ee1c8d323625d796132f to your computer and use it in GitHub Desktop.
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