How to store in the database directly the translation?

I found the solution ! The problem was I loaded plugin domain only when plugins are loaded, not for the activation plugin. It resolves my problem… MyPLugin.php class WPGroupSubs { public function __construct(){ // Install needed components on plugin activation /* need to add this */ register_activation_hook( __FILE__, array( $this, ‘load_text_domain’ ) ); register_activation_hook( __FILE__, … Read more

Performance bug – slow DB query

It is relatively rare for WP to have query performance issues on a small to moderately sized site: The queries it typically runs are reasonable (not perfect, but reasonable). A lot of things queried are aggressively cached within page load, and persistently with object cache available. While you certainly can throw enough code at it … Read more

Get meta_query value by user meta array

This should be better for what you’re looking for, the only issue might be how the meta gets returned, as an actual array, or as a string that needs to be turned into an array. $args = array( ‘post_type’ => ‘pictures’, ‘orderby’ => ‘post_modified’, ‘order’ => ‘DESC’ // post_status is unnecessary because default is ‘publish’ … Read more

How to save dropdown slection by a user in the DB

You can update user meta either through custom code or using a plugin. Advanced custom fields will solve your issue. Check out the reference links for more info : https://support.advancedcustomfields.com/forums/topic/how-to-use-acf-to-add-user-profile-meta/ https://www.advancedcustomfields.com/resources/how-to-get-values-from-a-user/