Show only a WooCommerce Review in activity feed

1. Open userpro > addons > social > functions >api.php.

2. Look for the function “log_action()”. You can add a new log action case and markup here.

3. Open userpro > addons > social > functions >log_actions.php.

4. This is where you can see examples of hooking into tha action filters to trigger a log event to be created.

Example :

$userpro_social->log_action( ‘new_comment’, $comment['user_id'], $comment['comment_post_ID'], $post->post_title );

5. You simply need to create a function that passes the necessary args to your new log case you created in api.php.We would recommend doing all this in your functions.php or some other file so it is not lost when you upgrade the plugin OR just make a note to manually update these two files and merge in your changes.

Was this article helpful?

Related Articles

Leave A Comment?