Created
August 17, 2018 09:28
-
-
Save patrickposner/8d69ddd7f3a6654a1077e1f7f8740b23 to your computer and use it in GitHub Desktop.
This file contains hidden or 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( 'wp_footer', 'gm_output_rbp_meta' ); | |
| function gm_output_rbp_meta( $product_id ) { | |
| $rbp_config = get_post_meta( $product_id, 'rbp_role_config' ); | |
| foreach ( $rbp_config as $group ) { | |
| if ( 'b2b' == key( $group ) ) { | |
| var_dump( $group['b2b']['bulk_price'] ); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment