• Hi,

    I want to insert new column wp_wordpoints_points_logs. and i want to update the column value with 1 when user get comments on his post.
    kindly do the needful.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author J.D. Grimes

    (@jdgrimes)

    Hi @abhishek26,

    WordPoints is not designed to have new columns added to the points logs table. However, it does include a separate table for storing this kind of data for each points log, wordpoints_points_log_meta. I would recommend that you use the wordpoints_update_points_log_meta() function to store this information. Then you can retrieve it again with wordpoints_get_points_log_meta(). You can also use it in queries via the meta_query parameter for the WordPoints_Points_Logs_Query class. (It works the same as the parameters for WP_Query.)

    Another alternative might be to store this information as user meta, if you only need to store this information once for each user, rather than for every single points log.

    I hope that is helpful. If you have further questions, let me know.

Viewing 1 replies (of 1 total)
  • The topic ‘I want to insert new coloumn wp_wordpoints_points_logs’ is closed to new replies.