Love

2519191615116

Function /mona_reactions_get_by_post

Get the data for individual post.

<?php $data = mona_reactions_get_by_post( $post_id, $type ) ?> 

Parameters:

  1. $post_id (REQUIRED – integer): ID of post.
  2. $type (OPTIONAL – string): Type of function. Default value: “all”.
    1. “all”: Get all type of user reactions to post. Return data order by date.
    2. “registered”: Get all registered user reactions to post.¬†Return data order by date.
    3. “visitor”: Count non-registered user reactions to post. Return integer.
    4. “count”: Count all type of user user reactions to post. Return integer.

 

Function /mona_reactions_user

Get the data for individual user.

<?php $data = mona_reactions_user( $user_id ) ?>

Parameters:

  1. $user_id (REQUIRED – integer): ID of user.

Return data order by date.

Love

2519191615116