Add the post id to the $post array when creating a new post... #148

Merged
merged 1 commit into from Apr 26, 2014

2 participants

@cmmarslender

... so anything hooked into the actions have this available

Initially had proposed adding the post ID as an additional variable passed to the action - I think this method makes more sense. See #147 for my comment there

@rachelbaker
WordPress REST API Team member

@cmmarslender Thank you for the pull requests. I agree that this is a much cleaner approach than #147, and it looks good to me.

@rachelbaker rachelbaker added this to the 1.0 milestone Apr 26, 2014
@rachelbaker rachelbaker added the Bug label Apr 26, 2014
@rachelbaker rachelbaker merged commit 1dbac15 into WP-API:master Apr 26, 2014

1 check passed

Details continuous-integration/travis-ci The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment