Created
December 7, 2023 00:47
-
-
Save J2112O/7ea65ee623a46ade39ff1893faa241a7 to your computer and use it in GitHub Desktop.
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
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