Tag Info

New answers tagged

0

You can use this filter: wpmu_blogs_columns More info: https://developer.wordpress.org/reference/hooks/wpmu_blogs_columns/


0

It's kind of a bit different, but since this thread appears first on Google, it might be usefull for someone else. To get the current logged-in user profile link, just use bp_loggedin_user_domain() Hope that helps.


1

Try this: global $current_user; $user_id = $current_user->ID; // current user ID $meta = get_user_meta( $user_id, 'title', 'Manager' ); // subject meta if($meta != '') // updates meta if exists update_user_meta($user_id, 'title', 'Manager'); else // creates new meta if not exists add_user_meta($user_id, 'title', 'Manager');


0

The trick is to call the hook "wp_insert_post". But the post-type is not what you expect - post, page oder custom post type. It's "revision". Now you can fire a WP_Query right after the post is saved in the database.


0

It should be stored in the wp_usermeta table under the entreprise and os user meta keys. You should consider using prefix on your custom meta keys, to avoid name collison. Example: kerzzy_entreprise kerzzy_os It should show up with: SELECT * FROM `wp_usermeta` WHERE `meta_key` = 'entreprise' in your MySQL administration tool, e.g. PHPMyAdmin. ... ...


0

Hi Use this condition if above condition is not working : if(!xprofile_get_field_id_from_name('Twitter')){ xprofile_insert_field( $xfield_args ); }



Top 50 recent answers are included