Allow user to manage wp_usermeta data on page

Hi Team! Looking at Bricksforge and (among other things), interested to know how it might help with the following use case:


I am creating a simple “Favorites” plugin, and I need to show the posts (CPT) that a user has favorited, and allow them to manage (remove) them.

Goals:

  1. Show the posts they have favorited (I guess via a Query Loop that can access the wp_usermeta df_favorites key).

  2. Allow them to “unfavorite” a CPT via e.g., a trash icon (with or without needing a Save button).

  3. BONUS: Facilitate a logical login flow.*

Here’s an example row from the wp_usermeta table, showing that a user has favorited 4 posts:

umeta_id user_id meta_key meta_value
311 8 df_favorites a:4:{i:0;i:5211;i:1;i:5246;i:2;i:5209;i:3;i:5264;}

*I would add one more thing here for completeness of use case:

This page should not be accessible if the user signed out (it would be empty). So I imagine a flow where if they try to access the page while signed out, they are redirected to the login page (or a login form is present instead), and then upon login, redirected back to the page (or the login form disappears / the page is reloaded).

TBH I’m not sure how that last requirement touches Bricks and/or Bricksforge, but wanted to include it for completeness.

  1. What of this can be done with Bricks/Bricksforge out of the box, if anything?

  2. What requires custom coding, but can still use Bricks/Bricksforge?


Thanks so much for your support!

Update: I ended up just coding it all custom and not using Bricks at all.

But I’d still be intereste for the record to know if Bricksforge can work with usermeta out of the box.

Thanks

30 views and nobody even attempted to respond (speaks volumes).

I don’t own BF (yet), I’ve been watching it mature along with Bricks and Advanced Themer for awhile and until I’m fully ready to begin my project. I’ve been studying the docs of both since early versions.

But at first glance of what you posted, does the method they do the easy one click toggle ‘like’ functionality work for you, here: https://www.youtube.com/watch?v=RjRye1e0_hU