Support Forum Support Forum User Activity Tracking and Log Adding custom php parameters to track additional users not saved in the DB

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 19, 2021 @ 2:00 pm

    Hi,

    My question is if we can implement custom php parameters that would target custom user first & last names, IP address?

    Meaning, your plugin is referencing logged users in the DB. It should be possible to add a different user who are not in the DB but logged in via an API.

    We are already referencing these users with some of our gravity forms.

    We added custom php parameters and it works as expected in the gravity forms. We only add the custom php parameter to pull it into the forms.

    The url is not open to the public.

    I was thinking we should be able to do the same with your plugin.

    How can we make this possible for the activity tracking plugin?

     

    Thank you in advanced.

    Moove Agency
    March 26, 2021 @ 11:12 am

    Hi there,

    Thanks for using our plugins.

    Our plugin has a filter allowing developers to manipulate data before being stored in the database:

    add_filter('moove_uat_filter_data', 'moove_uat_filter_data_api', 10, 1);
    function moove_uat_filter_data_api($data_to_instert) {
    if ( isset( $_GET['api_user'] ) && $_GET['api_user'] ) :
      $data_to_inser['display_name'] = 'API Username';
    endif;
    return $data_to_instert;
    }

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Adding custom php parameters to track additional users not saved in the DB’ is closed to new replies.