ansonphong / postworld

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

Post Relationship Methods #22

Closed ansonphong closed 10 years ago

ansonphong commented 10 years ago

Hi Haidy, Corresponding with the database structure update, there are some new functions to getting and setting data to the post_relationships column in the User Meta table which you can create.

You can see the updated database structure here : https://github.com/phongmedia/postworld/blob/master/dev/DATABASE-STRUCTURE.md#post_relationships--json

Here are the new functions :

You can find the documentation here : https://github.com/phongmedia/postworld/tree/master/php#set_post_relationship-relationship-post_id-user_id-switch-

I will update descriptions of get_viewed(), get_favorite(), is_favorite(), etc, as wrappers for this function.

Thanks.