Prefer personal user settings over site and network settings.
WP User Preferences allows users to override certain site & network configurations to suit their own personal needs. Languages, time-zones, date & time formats, currency formats, and email notifications are a few examples of user preferences.
- Download and install using the built in WordPress plugin installer.
- Activate in the "Plugins" area of your admin by clicking the "Activate" link.
- No further setup or configuration is necessary.
Use wp_get_user_preference( $user_id, $key ) to retrieve a preference for a
specific user, or wp_get_current_user_preference( $key ) for the current
user. The plugin checks an existing user-meta value first, then the site option,
and finally the network option on multisite.
Use the wp_map_user_preference_key filter when the corresponding user, site,
and network keys differ. Use wp_get_user_preference to filter the resolved
value.
No. There are no new database tables with this plugin.
No. All of WordPress's core database tables remain untouched.
Yes. In a multisite installation, the network setting is the last fallback used.
Use GitHub Discussions: https://github.com/stuttter/wp-user-preferences/discussions
Yes, please! Having an easy-to-use API and powerful set of functions is critical to managing complex WordPress installations. If this is your thing, please help us out!