In Progress

Need help with $user_role

Hi,

I have a plugin that is doing something only for certain userroles. However, I need it to work for ALL users, also just visitors of my website.

Here's the code that is determining the userroles. Can anyone help me with adjusting this? If I simply remove this code from the file, it breaks my website so that is not an option.

-----

global $current_user;

$user_roles = $current_user->roles;

$user_role = array_shift($user_roles);

if ($user_role == 'administrator' || $user_role == 'developer' || $user_role == 'shop_manager' || $user_role == 'fons') {

----

Skills: PHP

See more: help converting file, need file vectorized, need file obj file conversion contract, save user machine csv file aspnet, samba ubuntu user help, help need insurance rater software, download wmv file save option, help need color scheme business, help need graphic designer urgent illustration, magento file upload option, need help need find website customize pictureplease help, collect data user using flash file website, help need job, help need quick simple website, help need work designer illustrator, need file zencart fulfillment, help need design creative brochure, asp net assign role user, windows authentication write role user aspnet, website kindness mission help need template, read need file, help need change face picture, admin role user role phpmyadmin, help need artist design, help need marketing help

About the Employer:
( 24 reviews ) Utrecht, Netherlands

Project ID: #11812944

Awarded to:

shailendra041090

Hi, i can help u solve user role problem, I can do this job easily. I have checked your attach file also, I can start now only.

€8 EUR in 1 day
(64 Reviews)
5.0

11 freelancers are bidding on average €21 for this job

bestphpjobs

I read your project description and that make sense , at there you described issue very well. I know all stuff good that you want for this job, PHP, javascript, mysql, html, etc very well. I can manage this job very we More

€12 EUR in 1 day
(188 Reviews)
6.3
sat12

Hi, I am joomla, virtuemart expert having 5 years of experience. Recently i completed these projects [url removed, login to view] [url removed, login to view] [url removed, login to view] Please award me the project.

€34 EUR in 1 day
(266 Reviews)
6.5
€29 EUR in 0 days
(60 Reviews)
5.7
sanu61

Hi buyer, Greeting of the day. We have good experience of Core PHP, Frameworks, CMS's, Ecommerce, Mysql, Responsive Web Designs, Ajax, jquery, JavaScript, Json, Photoshop, Graphics, Banner, Flyer and Logo Designs, More

€29 EUR in 0 days
(35 Reviews)
4.9
artiboria

Thank you so much for this great opportunity. I have 9+ years of experience in this field and can provide you my past work sample. I am an expert in WordPress, Magento, Joomla, PSD to HTML conversion, LOGO Desigi More

€23 EUR in 1 day
(24 Reviews)
4.5
phpfreelancer86

Hello, I have over 7+ years of experience in Web Development and Maintenance.I have read your requirements and think that I would be a great fit for this project. I am available to discuss and ready to start right a More

€19 EUR in 0 days
(36 Reviews)
4.7
mvaqasuddin

Hi there, How are you doing ? Could you please PM me right away so I can discuss what's actual issue is ? Thanks

€23 EUR in 1 day
(60 Reviews)
5.2
€23 EUR in 1 day
(12 Reviews)
4.0
phpmastercoder

Hi, I am master developer, I have worked with all the techs eg. Joomla, Wordpress, Magento ,Prestashop, Opencart, zencart, shopify, I really in need of Work. I have read the Project description, I am very much co More

€10 EUR in 1 day
(27 Reviews)
3.2
DarshitAppsLab

Hi, I am Amit, Business Development Manager. We are ISO 9001:2008 & ISO: 27001 Certified Web Designing and Development Company based in India with our offices in USA and Canada. We are a leading Web designing More

€23 EUR in 1 day
(0 Reviews)
0.8