Hi Maria,
your questions are quite specific, are you confortable with editing code?
Because, you’ll need to create your own mini-plugins to achieve what you want…
– All widgets: it’s an interesting feature, I’ll try to include this in a future version. See: unregister_widget.
– Admin Bar Menu: check this search results or check this Admin Tweaks file (the function custom_menu).
– Restricting page listings for users: check this search results.
cheers,
Rodolfo
Thank you so much for a very useful answer.
I am comfortable editing code… or at least trying it.
So: If I create my own mini-plugin – let’s say for the widget part – I then place this mini-plugin file in my child theme? Will my mini-plugin then override all other plugins?
If not this would be a great way to customize plugins and make sure I’m not missing any code on updates. Just what I have been looking for. I look forward to trying this out.
Could you also tell me the right way to customize a plugins css or php files, so I won’t loose any changes made if I update the plugin?
Cheers,
Maria
No, your custom plugins go in wp-content/plugins/ folder.
It will override what you want it to. And you can disable it whenever needed. That’s why you don’t put custom code in your theme or child theme functions.php, so you can enable/disable this custom code without touching the theme.
An example of plugin that will disable one of Jetpack’s widget for non-administrators:
<?php
/*
Plugin Name: Remove Jetpack Widget
*/
add_action( 'widgets_init', 'b5f_remove_custom_widgets', 15 );
function b5f_remove_custom_widgets()
{
if( !current_user_can('add_users') )
unregister_widget( 'Jetpack_Gravatar_Profile_Widget' );
}
To apply custom CSS, you can use the action hooks admin_head or wp_head. To customize the PHP part, that will require an analysis of each plugin individually.
hope it helps
Sweet!
I see that the plugin Adminimize show all widgets – is Admin Tweaks compatible with this plugin?
Yes, I always use Adminimize and it was an inspiration when creating Many Tips Together (now Admin Tweaks) 😉
ps.: I’ll probably add the “all widgets” options in the next upgrade.