Hi!
I need to modify 2 shortcodes to meet my requirements. The project budget is 15USD, so please don't bid more than that because you won't be considered.
Milestone will be 5, I will need to check both codes working on my site and then I will release all the money, after checking all is working as expected. If you agree with these conditions, you can bid.
Thanks!
SHORTCODE 1:
This shortcode displays on frontend the current role of the logged-in user. I need some modification to also be able to display other user roles, like first_name or last_name or any other custom profile field via metadata.
The actual shortcode is [role] and I want something like this:
[user meta_key="role"]
[user meta_key="first_name"]
[user meta_key="subarea"] (A custom user profile field)
So any combination is possible because it will read the user fields.
function get_current_logedin_user_role( $attr )
{global $wp_roles;
extract( shortcode_atts( array(
'user' => null,
), $attr ) );
$user = $user ? new WP_User( $user ) : wp_get_current_user();
$list = array();
foreach( $user->roles as $role )
{
$list[$role] = $wp_roles->roles[$role]['name'];
}
return implode( $list, ', ' );}
add_shortcode( 'role', 'get_current_logedin_user_role' );
------------------------------
SHORTCODE 2:
I need this code to handle the following redirections:
If user role is backend, then redirect to /alta/
If user role is subscriber or editor, then redirect to /bienvenida/
Any other role redirect to /perfil/
add_filter( 'wp_nav_menu_items', 'wti_loginout_menu_link', 10, 2 );
function wti_loginout_menu_link( $items, $args ) {
if ($args->theme_location == 'primary-menu') {
if (is_user_logged_in()) {
$items .= '<li id="menu-item-1437"><a href="'. wp_logout_url() .'">'.
__("Cerrar sesión") .'</a></li>';
} else {
$items .= '<li id="menu-item-1437"><a href="'.
wp_login_url(get_permalink()) .'">'. __("Acceder") .'</a></li>';
}}return $items;}If logout, the go to X URL
hello sir
i am expert in wordpress shortcode develop
i am able to do this work
you will satisfy with my work
i can do this work asap
this simple work for me
thank you
Hi,
We have gone through your project description and have understood that you are struggling on a couple of things. We are experts in designing and developing WordPress website and their is no work in WordPress that we do not excel in. Once you award us the project we will need the access to your website. Our turn around time is 24 hrs and in case of changes 2-3 working hrs. Our delivery is on time and 100% correct. Please check our profile for Portfolio and Short Pay Guarantee.
Once you provide us with the WordPress access we will do the changes as provided in the project description and will upload it in a test folder for you to see the changes. Based on the feedback we will do the changes as asked for. We offer unlimited revisions.
Once all the changes have been approved we will transfer all files to you and if required upload it & make it live
In case of any other changes you required we will be happy to do that as well.
We are always available for communication via skype, phone, email and any other messenger as well.
Looking forward to hearing from you & moving forward
Regards
Aj
Thank you for this interesting job and I have great experience on laravel.
The best thin is that I am free enough to start the job right away.
I am working as a full time freelancer.
Please share the further task details so we can take it ahead.
Warm Regards, Jay
Hello Sir ,
I read through the job details carefully and I am excited to start working on this project.
I am confident I can exceed your expectations.
I have an extensive knowledge of Php, Wordpress, MySql, Html5, Css3, Javascript and more.
I will be able to contribute to this project by:
modifying 2 short codes as per your requirements.
which will complete the project in time and with all required functionalities.
Please let me know of a good time to discuss more about this project.
Looking forward to build up a long term professional relationship with you.
Thanks,
Rajib
Hi There,
I can do this project, as per as your given requirements in a project description.
As I have 19 years of experience in web development.
Looking forward to hearing from you to do further discussion.
Hi,
I will modify this given Wordpress PHP code according to your requirements. Please share your requirements.
I can write any code in PHP and Wordpress. I have more than 6 years experience.
Can we chat ?