Building my first WP theme and I quickly realized that I need to remove all the default widgets since I will be building my own.
So my question is what function do I need in my function.php file for this to happen =)
Thanks!
Building my first WP theme and I quickly realized that I need to remove all the default widgets since I will be building my own.
So my question is what function do I need in my function.php file for this to happen =)
Thanks!
You must be logged in to post a comment.
I think this is the code you’re looking for:
This is a much better solution.
This is future proof and better than letting WordPress register them then unregistering them. This solution prevents the default widgets from even being registered.