1st condition of the script:
-If the user role is not “CONTRIBUTOR” but the single product was his own upload, he can see his link
For example: The user is a “seller” and producttitleABC is his product, then he could enter his this link [url removed, login to view]
but if he enter the url [url removed, login to view] and productXYZ is not his product, then he will direct to 404 page.
2nd condition of the script:
-If the user role is not “CONTRIBUTOR” then the user cannot enter the “PANTS” product category.
For example: he cannot enter the link [url removed, login to view] it will direct to 404 page unless I change his user role manually in admin backend
3rd condition of the script:
-If the product is not his upload, but he is a “CONTRIBUTOR” then he can see the links under “PANTS” category.
4th condition of the script:
-if the client has change into a userole “CONTRIBUTOR” count 14days, after “14” days, the userole change back to its previous userole
1- Clean script, I wanted to type the word ONLY ONCE above the script of the word, “CONTRIBUTOR” “PANTS” “14” I don’t want to keep typing the these words in the whole script, AND this is just sample user role, pants and 14 days, I may change it in the future
2- Use this code “$post->ID” to enter the url product link, because when the seller clicks the edit button to edit their product, they cannot edit the product because edit button url direct is restricted only to “CONTRIBUTOR” user role, this is where your script enters so that even if the userole is not “CONTRIBUTOR” but the “$post->ID” is his own upload, then he could enter his product link.
3- in the end, I'm expecting to received only the script that will be put in the function of my child theme. Do not put all the script in one, seperate the 4 script, so that i know which script does that function.
4- there is no website up, I'm not giving anything sql database anything, i don't want you to tweak any of my sql. I don't want other method, I just wanted the script that will be put in the function code.
5- Please quote me the price, don’t tell me later on that you can’t do it and it’s hard to do then you need a price increase after awarding. No tricks.
6- Don’t try to put malicious code inside the function code, the final code will be check by a professional web developer.
put your price and days to finish
4 freelancers are bidding on average ₱710 for this job
You can contact us by email: solver(at)[url removed, login to view] We are experienced in software development, Linux, Java, Python, advanced numerical computations, data analysis, crawler development etc.