Find Jobs
Hire Freelancers

Show "member since" on Buddypress profile

£20-250 GBP

V teku
Objavljeno pred več kot 4 leti

£20-250 GBP

Plačilo ob dostavi
The project has a limit of 50 pounds as a budget. My project is to show the "user_registered" field on the buddypress profile. You will need to create the " code that pull this from the database of the user. I have copied some information form a few sites bellow. None of the info below is working but it shows a bit where the "functions can be found" The project has a limit of 50 pounds as a budget. JUST EXAMPLES Showing Registration Date Field in User Profile namespace ShowMemberSince; add_action( 'plugins_loaded', 'ShowMemberSince\init' ); /** * Adding needed action hooks */ function init(){ foreach( array( 'show_user_profile', 'edit_user_profile' ) as $hook ) add_action( $hook, 'ShowMemberSince\add_custom_user_profile_fields', 10, 1 ); } /** * Output table * @param object $user User object */ function add_custom_user_profile_fields( $user ){ $table = '<h3>%1$s</h3> <table class="form-table"> <tr> <th> %1$s </th> <td> <p>Member since: %2$s</p> </td> </tr> </table>'; $udata = get_userdata( $user-ID ); $registered = $udata->user_registered; printf( $table, 'Registered', date( "M Y", strtotime( $registered ) ) ); } ?> function wpb_user_registration_date($atts, $content = null ) { $userlogin = shortcode_atts( array( 'user' => FALSE, ), $atts ); $uname = $userlogin['user']; if ($uname!== FALSE) { $user = get_user_by( 'login', $uname ); if ($user == false) { $message ='Sorry no such user found.'; } else { $udata = get_userdata( $user-ID ); $registered = $udata->user_registered; $message = 'Member since: ' . date( "d F Y", strtotime( $registered ) ); } } else { $message = 'Please provide a username.'; } return $message; } add_shortcode('membersince', 'wpb_user_registration_date'); Next, you can display a user’s registration date by simply using the shortcode like this: [membersince user=peter] Replace peter with the username that you want to show. We hope this article helped you show registration date in WordPress user profiles. You may also want to see our tutorial on how to add additional user profile fields in WordPress registration.
ID projekta: 21068233

Več o projektu

8 ponudb
Projekt na daljavo
Aktivno pred 5 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
8 freelancerjev je oddalo ponudbo s povprečno vrednostjo £71 GBP za to delo
Avatar uporabnika
Hello Sir, I can deliver the same in next 30 min. I am willing to start right away. Please check my profile for work and experience. Regards Ashwin
£50 GBP v 1 dnevu
5,0 (355 ocen)
7,1
7,1
Avatar uporabnika
Hi, I am really a quick wordpress developer. i make myself full available on freelancer during and after the completion of the project for support. I will provide you with unlimited free revisions till your complete satisfaction.i have wonderful experience in wordpress. i have 5 star profile throughout my freelancer profile. i can provide provide 100% crossbrowser compatibility for all known browser as well for Iphone and smart phones. I am really a quick wordpress developer.i can provide provide 100% crossbrowser compatibility for all known browser as well for Iphone and smart phones. please see www.freelancer.com/u/asd11.html i can guarantee wonderful support even after the completion of the project. As i did to my previous clients to win their confidence. As you can see in my profile that i do not work with many clients just to keep my self available to support existing clients. Regards, Asad
£50 GBP v 1 dnevu
5,0 (99 ocen)
6,3
6,3
Avatar uporabnika
Hello, I can help you to put the Registration Date of the user under the profile. Send me a message to discuss and so that I can show you my portfolio and capabilities. Looking forward to hearing from you. Thank you! Kind Regards Zohaib
£45 GBP v 2 dneh
4,9 (40 ocen)
6,0
6,0
Avatar uporabnika
⭐Hello, How are you?⭐ I am very interest on your project and want to know your requirements in detail. Please explain me your idea. I want to check exactly. Let's discuss about this project friendly. I have good experiences built and customized many mobile-friendly website using wordpress, Shopify, Wix, html, php until now. My skills are WordPress & woocommerce, Shopify, Wix, php, jQuery & Javascript, bootstrap, html, css etc. I can start right now and will finish this project asap. Looking forward to hearing from you. Thanks in advance for your time and consideration.
£50 GBP v 3 dneh
4,9 (31 ocen)
5,7
5,7
Avatar uporabnika
Dear sir I know what you want. Please hire me. i will finish within 30 min. I am waiting for your good Chance . Thanks
£50 GBP v 7 dneh
4,9 (31 ocen)
5,2
5,2

O stranki

Zastava UNITED KINGDOM
London, United Kingdom
5,0
7
Plačilna metoda je verificirana
Član(ica) od jan. 20, 2017

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.