coreactivity_user_meta_fields_to_monitor

Description

Filter the list of meta fields for Users to monitor and log if changed. Considering that a lot of user meta fields in WordPress are for things that often change, like settings for a user, logging every change can be counterproductive, and it is better to have the list of fields to monitor and log.

Definition
apply_filters( coreactivity_user_meta_fields_to_monitor, $monitor_fields );
Arguments
Name
Type
Description
monitor_fields
array
name of the meta fields to monitor, by default is array with common WordPress user meta fields.
Returns
array. array with names of meta fields to monitor and log changes.

By default, plugin already monitors following user meta fields: ‘first_name’, ‘last_name’, ‘nickname’, ‘description’, ‘rich_editing’, ‘syntax_highlighting’, ‘comment_shortcuts’, ‘admin_color’, ‘show_admin_bar_front’, ‘locale’.

0
0
57
Rate this reference

You are not allowed to rate this post.

Leave a Comment