Share Bulk Editor Settings Between Users: Columns and Profiles in WOLF
Every user who opens WOLF builds their own table: their own columns, column order, default sorting and profiles. That is deliberate, because several people can then work in the editor at the same time without changing each other's screen. When a team needs the same setup, there are three ways to share bulk editor settings between users: one configuration for everybody, one configuration per role, or a one-time copy from a template user that everyone can adjust afterwards. All three are below, with what is shared and what stays personal, and how column and filter profiles fit in.
What WOLF stores per user and what is site-wide
WOLF keeps its settings in the WordPress options table. Per-user options end with the ID of the user:
| What | Stored in | Scope |
|---|---|---|
| Columns (shown or not, order, titles) and the General settings of the Settings tab, such as Default posts count per page, Default sort by and Show thumbnail preview | wpbe_options_{user ID} | Per user |
| Column profiles | wpbe_profiles_{user ID} | Per user |
| Filter profiles | wpbe_filter_profiles_{user ID} | Per user |
| History | WOLF's History tables, each record with its user ID | Per user |
| The list of custom fields in the Meta Fields tab | wpbe_meta_fields | Site-wide |
| visible for the site editor, Site editors post types, Separate columns and meta for post types, Show content and excerpt text partly | wpbe_site_editor_visibility, wpbe_site_editors_post_types, wpbe_site_separate_settings, wpbe_show_text_editor | Site-wide, changed by administrators |
A user who has never saved the Settings tab therefore starts with the default columns, even if the administrator spent an hour on the layout. When Separate columns and meta for post types is switched on, WOLF adds the post type slug to the names: wpbe_options_5post, wpbe_options_5page, wpbe_meta_fieldspost and so on.
One configuration for all users: wpbe_settings_key_options
WOLF builds the name of the settings option from the filter wpbe_settings_key_options, which receives the ID of the current user. Return a fixed word instead, and every user reads and writes the same option, wpbe_options_for_all:
/*
* WOLF: one set of columns and settings for all users.
* Child theme functions.php or a code snippets plugin.
*/
add_filter('wpbe_settings_key_options', function ($key) {
return 'for_all';
});
The shared option is empty at first, so right after the snippet goes live everybody sees the default columns. Either build the layout once more and click Save all settings, or copy the setup you already have to the shared name with WP-CLI (replace 1 with your user ID):
wp option get wpbe_options_1 --format=json | wp option update wpbe_options_for_all --format=json
What to expect while the filter is active:
- Any user who changes the columns and clicks Save all settings changes them for everybody. Loading a column profile does the same, because WOLF applies a profile by rewriting the settings. Decide who in the team maintains the layout.
- Column profiles, filter profiles and History stay personal. The filter covers only the settings option.
- With Separate columns and meta for post types switched on, the names become
wpbe_options_for_allpost,wpbe_options_for_allpageand so on: each post type has one layout, shared by everyone. - Site editors still get only the columns marked visible for the site editor. A shared layout does not give them more rights.
Older forum answers suggest deleting code in the plugin file profiles.php for this. Do not edit plugin files: the next update overwrites them, and the filter does the job without touching them. The hook is also listed on the More settings (implicit) page.
One configuration per role
The filter receives the user ID, so it can share settings within a group and leave everyone else alone. In this example all editors work with one layout, wpbe_options_editors, while administrators keep their personal ones:
/*
* WOLF: all users with the Editor role share one set of columns and settings.
* Child theme functions.php or a code snippets plugin.
*/
add_filter('wpbe_settings_key_options', function ($key) {
$user = wp_get_current_user();
if (in_array('editor', (array) $user->roles, true)) {
return 'editors';
}
return $key;
});
Give other users a copy of your setup
Often a team wants everyone to start from the same columns but keep the freedom to change their own afterwards. Then copy instead of sharing. Find the user IDs under Users (the edit link of a user contains user_id=) or with wp user list --fields=ID,user_login. These commands copy the settings, the column profiles and the filter profiles of user 1 to user 5; skip a line if user 1 has no option of that kind yet:
wp option get wpbe_options_1 --format=json | wp option update wpbe_options_5 --format=json
wp option get wpbe_profiles_1 --format=json | wp option update wpbe_profiles_5 --format=json
wp option get wpbe_filter_profiles_1 --format=json | wp option update wpbe_filter_profiles_5 --format=json
Without WP-CLI, the same copy can be made in phpMyAdmin by duplicating the rows in the options table and changing the ID at the end of option_name. The commands are documented in the WP-CLI option update reference.
For users who join later, let WordPress make the copy automatically. The following code gives every user who has never opened WOLF the settings and column profiles of a template user. Users who already have their own setup are not touched:
/*
* WOLF: new users start with the columns, settings and column profiles
* of a template user. Existing setups are left as they are.
* Child theme functions.php or a code snippets plugin.
*/
add_action('init', function () {
if (!is_admin() || !current_user_can('publish_posts')) {
return;
}
$template_user_id = 1; // the user whose setup new users get
$user_id = get_current_user_id();
if ($user_id === $template_user_id) {
return;
}
foreach (array('wpbe_options_', 'wpbe_profiles_') as $prefix) {
if (false === get_option($prefix . $user_id)) {
$template = get_option($prefix . $template_user_id);
if (false !== $template) {
update_option($prefix . $user_id, $template);
}
}
}
}, 1);
The priority 1 matters: WOLF creates the default settings of a new user late in init, so the copy has to exist before that. Use this or the shared configuration, not both: with for_all active, the per-user options are no longer read.
Column profiles and filter profiles
A column profile stores which columns are shown and in what order; you save and load it with the Columns profiles button above the table. A filter profile stores a set of filter conditions and lives behind the Filters profiles button. Both belong to the user who saved them, so colleagues do not see them in their lists. To hand them over, copy the profile options as shown above.
Profiles cannot be updated in place. Saving under a name that already exists adds a second profile with the same name, because every saved profile gets its own internal key; for filter profiles the key comes from the filter you applied, and each click on Filter creates a new one. To update a profile:
- Load the profile.
- Change the columns, or change the filter conditions and click Filter. A filter profile can only be saved while a filter is applied.
- Save it under a new, clear name, for example with the date.
- Select the old profile and click remove. The column profile Default cannot be removed.
What administrators set for the whole team
Some settings are the same for everyone by design, and only administrators change them. The Meta Fields list is site-wide: each user decides which of these custom field columns to show, but the list itself is common, see Meta Fields. Users with the Editor role, called site editors in WOLF, get the post types listed in Site editors post types and, in the premium version, only the columns an administrator marked visible for the site editor. How to set this up is explained in limiting what a site editor can edit and in the site editors error fix. Working in WOLF at the same time is covered in editing posts together with your team.
Checklist
- The code is in the child theme's
functions.phpor in a snippets plugin that runs in the admin area, never in the plugin files. - To share:
wpbe_settings_key_optionsreturns the same word for every user who should share the layout. - To keep your current layout: copy
wpbe_options_{your ID}to the shared name before or right after enabling the filter. - With separate settings per post type, every option name ends with the post type slug.
- Profiles stay personal: copy
wpbe_profiles_{ID}andwpbe_filter_profiles_{ID}to hand them over. - Reload the WOLF page after every change.
If the users still see different columns after that, post the snippet you use and the option names you see in the database on the WOLF support forum.