Skip to:
Content
Pages
Categories
Search
Top
Bottom

Count how many times a member shares content on social media

Viewing 5 replies - 1 through 5 (of 5 total)
  • @henrywright

    Moderator

    Hi @lbpp

    It’s definitely possible but will need some custom code (unless you can find a plugin in the Plugin Directory?)

    @lbpp

    Participant

    Hey @henrywright thanks for getting back to me. Yes I figured it would require custom coding. I have scoured the plugin directory for something close to this and could not find anything. If I were to develop a plugin like this can you point me to buddypress documentation that would be helpful to get started?

    @henrywright

    Moderator

    It wouldn’t be BuddyPress documentation you’d need, rather, WordPress documentation. Take a look at the articles on user meta, specifically look at the get_user_meta() and update_user_meta() functions.

    The general idea would be to increment a user’s share count each time something is shared by that user.

    Refs:

    https://codex.wordpress.org/Function_Reference/update_user_meta
    https://codex.wordpress.org/Function_Reference/get_user_meta

    @lbpp

    Participant

    I see… Yes I should have realized that all the user meta was stored in the default table!! I guess I kinda meant if I was going to develop a buddypress specific plugin where would be a good place to start, but I suppose it is like any other WP plugin. Thanks for the insight @henrywright!

    @henrywright

    Moderator

    Yeah, all BuddyPress sites will have the wp_users and wp_usermeta tables. See here for a description of the WordPress database and here for the BuddyPress one.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Count how many times a member shares content on social media’ is closed to new replies.
Skip to toolbar