Adding Field to Profile “Name”

check out my older article HOW TO ADD WORDPRESS AUTHOR BIO & PROFILE PAGE https://phirebase.com/blog/how-to-add-author-bio-profile-page/ just short example to add Twitter and Facebook fields: function my_new_contactmethods( $contactmethods ) { // Add Twitter $contactmethods[‘twitter’] = ‘Twitter’; //Add Facebook $contactmethods[‘facebook’] = ‘Facebook’; return $contactmethods; } add_filter(‘user_contactmethods’,’my_new_contactmethods’,10,1); Single loop <?php the_author_meta(‘facebook’); ?> – show facebook name <?php the_author_meta(‘twitter’); … Read more

Completely hide user info

This is dependant on your theme/plugins so it’s impossible to answer, as s_ha_dum mentioned. For example some themes output the author name in the body as a class like <body class=”author-keanu”> or maybe they just use the author id like <body class=”archive author-22″> and then you can check the author by going to www.example.com/?author=22 and … Read more

Extra User Profile Field Upload File / Image

PHP CODE /* * Load style & scripts */ function itclanbd_admin_load_scripts( $hook ) { $allowed = [‘profile.php’, ‘user-new.php’, ‘user-edit.php’]; if ( ! in_array( $hook, $allowed ) ) { return; } wp_enqueue_media(); wp_enqueue_style(‘finance2sell’, plugins_url(‘css/style.css’, __FILE__), array(), null); wp_enqueue_script(‘finance2sell’, plugins_url(‘js/scripts.js’, __FILE__), array(), ‘1.3’, true); } add_action( ‘admin_enqueue_scripts’, ‘itclanbd_admin_load_scripts’ ); /** * Create custom fields * @param $user … Read more

How do I add a php statement to a jQuery string

You might want to try to use wp_localize_script() to allow your javascript to use data that are normally only available using php. Here is the link in the codex that will help you do what you need: https://codex.wordpress.org/Function_Reference/wp_localize_script Another way is to use a php to output your entire javascript code (in a php file, … Read more

Login redirect to certain bp profile page

this one works better imho, not my code btw 🙂 put it in /plugins/bp-custom.php //=Redirect to User’s Profile Page after Login function rt_login_redirect($redirect_to, $set_for, $user){ $redirect_to = bp_core_get_user_domain($user->id); return $redirect_to; } add_filter(‘login_redirect’, ‘rt_login_redirect’, 20, 3);