Skip to content

Instantly share code, notes, and snippets.

@J2112O
Created December 7, 2023 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J2112O/7ea65ee623a46ade39ff1893faa241a7 to your computer and use it in GitHub Desktop.
Save J2112O/7ea65ee623a46ade39ff1893faa241a7 to your computer and use it in GitHub Desktop.
add_action( 'woocommerce_single_product_summary', 'woo_custom_editor_block_field_display', 12 );
function woo_custom_editor_block_field_display() {
global $product;
$example_block_property = $product->get_meta( 'example_block_property' );
if ( empty ( $example_block_property ) ) return;
echo sprintf( __( 'Example Block Property: %s', 'astra-child' ), $example_block_property );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment