-
-
Save anonymous/c843adb8ceff516b8d8cc1a1c3d5c68a 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
new GW_Inventory( array( | |
'form_id' => 239, | |
'field_id' => 11.3, | |
'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