A great article touching the subject of $args in WordPress functions and covering some of the best practices for its use.
Code Snippets pluginWhen you have a WordPress website, at some point, you’ll probably choose to add your own custom functions into the functions.php file of your theme in order to add a certain feature, remove it, or modify it! However, when you update your theme at some point, all these changes you made will be gone.
The best practice is to always use a child theme and to add the custom functions into the functions.php file inside the child theme. However, you can also use the Code Snippets plugin which makes it super easy to add custom functions.
When you install and activate the plugin, navigate to Snippets -> Add New and add your snippet there.
Awesome, right? Cheers 🍷