-
-
Save anonymous/0cb7e1327191dcccc6b67a06279ad624 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
<?php | |
new GW_Inventory( array( | |
'form_id' => 239, | |
'field_id' => 11.3, | |
'field_group' => 5, | |
'stock_qty' => function() { | |
$post_id = get_queried_object_id(); | |
return intval( get_post_meta( $post_id, 'stock', true ) ); | |
} | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment