Remove Items from Wordpress Dashboard Sidebar - Code Snippets -CodeSnippets
HTML-код
- Опубликовано: 12 май 2023
- Join our 'How to Start a Web Design Business' Course - and use strategies to grow, get clients, and generate recurring income: websquadron.co.uk/how-to-star...
Book your 1-2-1 Consultation: websquadron.co.uk/socials
Code: www.codesnippets.cloud/snippe...
We love to create - share - respond - and deliver.
🧐 Learn with our Mastery Modules: websquadron.co.uk/web-design-...
🔗 All of our Important Links: websquadron.co.uk/socials/
😃 Join our Facebook Group: / 3309523509284305
😃 Get Code Snippets Pro: r.freemius.com/10565/3304295/
😃 Get Elementor Pro: be.elementor.com/visit/?bta=2...
😃 Boost your RUclips Analysis: www.tubebuddy.com/websquadron
👕 Get our Merchandise: websquadron.co.uk/merchandise
🥹 Support us: paypal.me/Websquadron
Hire us to work on your Website!
💌 info@websquadron.co.uk
👩💻 Visit websquadron.co.uk - Хобби
Your channel is in my top 3 channels for web related content. Love the short and longer form content. If nobody has said it, well done on everything, I appreciate the value you give, and wish you every success.
Perfect for "them" clients. Just saying ya know.👍
Yup and it’s a relatively safe way to do it.
Excellent video!
Thank you so useful
Love this.
Very nice!
This is great for removing the standard Wordpress items, but how can we remove other items that appear from plugins that we have installed. BTW... awesome service. Love It!
More tricky as you have to know their ids.
@@websquadron I have the IDs. Suggestions?
I have their IDs. Can you help?@@websquadron
Great! Any ideas on how to find the id's of any new items that comes with plugins or any themes etc?
I’m trying to get the low down on that
@@websquadron Thank You. Love your short Tips Videos❤
This is just what I was looking for. Question, how can you also hide custom ACF post types?
I’ll have to double check
Assume your post type is case-study
remove_menu_page('edit.php?post_type=case-study');
I also set a check for certain users so put it in a block
if (get_current_user_id() != 1) {
remove_menu_page('edit.php?post_type=case-study');
}
Only until you hide the snippets item itself together with many more 😂
Wait till you see tomorrow's video.....
Does it work for just admin or for other wp roles like editor or author
The User Role version is coming out tomorrow :)
@@websquadron thnx for this
This is really nice
Can it be customised per user role?
Imran you you're amazing
That's what I was wondering
@@larryjoeanderson if it does, it cuts out the need for an additional plugin to do just that.
Try this, not tested!
I’ll double check
@@websquadron Awesome 😁
How do you use this snippets for certain user roles?
You can define their role.
Will you show me how to do that please 😁
Does it remove the items or just hide them?
Remove from sight :) But they can't access it or right click and get it.
@@websquadron Thank you 🙏
And just where are those menu item array values documented?
Good question, and I'll delve deeper to get them all out.
awesome