Skip to main content
15 events
when toggle format what by license comment
Nov 29, 2018 at 9:04 vote accept Rashmi Ghatole
Nov 29, 2018 at 9:03 vote accept Rashmi Ghatole
Nov 29, 2018 at 9:04
Nov 27, 2018 at 11:55 vote accept Rashmi Ghatole
Nov 28, 2018 at 5:41
Nov 27, 2018 at 11:55 vote accept Rashmi Ghatole
Nov 27, 2018 at 11:55
Nov 27, 2018 at 11:55 vote accept Rashmi Ghatole
Nov 27, 2018 at 11:55
Nov 27, 2018 at 11:47 vote accept Rashmi Ghatole
Nov 27, 2018 at 11:47
S Nov 26, 2018 at 14:03 history suggested butlerblog CC BY-SA 4.0
grammar cleanup
Nov 26, 2018 at 13:33 comment added butlerblog As Jacob mentioned, the $post object is passed via the action and through that you pretty much have access to what you need. However, to answer the question about the $product object specifically, you need to give it a product ID (which is the post ID) to have it contain anything where you're trying to access it. See my answer below which provides a solution using the product object.
Nov 26, 2018 at 13:30 review Suggested edits
S Nov 26, 2018 at 14:03
Nov 26, 2018 at 13:00 answer added butlerblog timeline score: 5
Nov 26, 2018 at 10:55 review Close votes
Dec 6, 2018 at 13:57
Nov 26, 2018 at 10:25 review First posts
Nov 26, 2018 at 10:37
Nov 26, 2018 at 10:23 comment added Jacob Peattie What do you need it for? The 3rd argument of your function contains the post data.
Nov 26, 2018 at 10:22 history edited Jacob Peattie CC BY-SA 4.0
added 72 characters in body
Nov 26, 2018 at 10:21 history asked Rashmi Ghatole CC BY-SA 4.0