ansonphong / postworld

Wordpress Theme Development Framework
GNU General Public License v2.0
7 stars 0 forks source link

pw_update_post() - Return Post ID, not Array #46

Closed ansonphong closed 11 years ago

ansonphong commented 11 years ago

Hi Haidy, I was working with implementing pw_update_post() and I noticed that we should make it just like the wp_update_post() method and return the post ID - not the post Array / Object.

hmikhail commented 11 years ago

pw_update_post is already implemented and returns post_ID, could you please confirm?

$args = array('ID'=>13,'post_points'=>20); print_r(pw_update_post($args));

ansonphong commented 11 years ago

yes, affirmative.