-
Posted in : Empathy
-
I don’t use the Portfolio section of the site, just posts and pages and your layout of course.
I uninstalled the pixelwars porfolio plugin as it wasn’t being used and I don’t like the clutter or the confusion of unused plugins for other users.
I keep getting notices (I can dismiss them) and every time I create a new user, the first thing they see when they go to the dashboard is that they don’t have the permissions to install the pixelwars plugin. They too can dismiss this, but the test users keep asking me if I need to do something. I forsee this being a problem with a lot of users.
Anyway to disable the requirement of having this plugin for my theme?
SOLVED: for anyone else that ends up here,
Two methods, one that 99% of the people will use because they’re already doing it, but personally, can’t stand it (it involves editing your functions.php file directly which will get overwritten when/if the theme updates) and the other method which won’t be fully explained here because it’s outside the scope of answering this problem, although it would be considered the correct method, and won’t fail when the theme updates.
1. Easy method… but bad on you.
Open to edit the themes ‘functions.php’ file, and as of this writing line 4640 which is (and you can search for)add_action( ‘tgmpa_register’, ‘pixelwars__plugins’ );
Comment it out. (add // in front of it)
If you are using this method, you might as well comment out the require_once line above it as it’s extra un-needed code, although I haven’t looked into this much as I am not using this method.
2. Best Practices – not editing your functions.php file at all, because you know… it might get overwritten.
Instead, make a plugin (google it… its crazy simple) and within that plugin add the following code which will remove the add action that looks for the portfolio plugin.
add_action( ‘tgmpa_register’, ‘remove_pp’, 0 );
function remove_pp() {
remove_action( ‘tgmpa_register’, ‘pixelwars__plugins’ );
}The above code will prevent the plugin requirement of the theme.
Hope this helps someone else.
also… nice theme.
You must be logged in and have valid license to reply to this topic.