Tag Info

New answers tagged


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.


I like this one. You can add amin pages to the array to redirect them. I have it redirecting to dashboard below, but you can redirect to buddypress url as well... I'm just not sure what that url is since I don't use BP very often. function no_proflie_admin_pages_redirect() { global $pagenow; $admin_redirects = array( ...


Redirect from profile.php to the dashboard Here's one way to do it: add_action( 'load-profile.php', function() { if( ! current_user_can( 'manage_options' ) ) exit( wp_safe_redirect( admin_url() ) ); } ); where we redirect to the dashboard instead, if the current user can't manage options. Redirect from profile.php to the current user's ...


The following code* will redirect non-admin to a custom profile page in the front end, because instead of disabling you need to redirect them to your custom page. :) <?php add_action ('init' , 'wpse_redirect_profile_access'); function wpse_redirect_profile_access(){ //admin won't be affected if (current_user_can('manage_options')) return ...


For me Hameedullah Khan answer worked well. I've made just a little fix because my new fields have broken the page layout. So in the jquery code I've added jQuery(document).ready(function($) { field = $('#custom_user_field_row').remove(); field.insertBefore('#password'); ...


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. ... ...


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