If $relationship == favorite : Add / remove a row to Favorites table
So here we will be able to make use of the Favorites table. There is no usage of the favorites table yet, it is un-used, although this will allow us to collect data which will allow recommendations based on favorites.
Hi Haidy, I added a line in the documentation for:
set_post_relationship() https://github.com/phongmedia/postworld/tree/master/php#set_post_relationship-relationship-post_id-user_id-switch-
Under Favorites :
$relationship == favorite
: Add / remove a row to Favorites tableSo here we will be able to make use of the Favorites table. There is no usage of the favorites table yet, it is un-used, although this will allow us to collect data which will allow recommendations based on favorites.
Up to this point we had a Favorites table which was previously un-used: https://github.com/phongmedia/postworld/blob/master/dev/DATABASE-STRUCTURE.md#favorites