Speaking of flow control in Ruby, we are basically talking about “IF” and “UNLESS” statements. “IF” relates to positive, while “UNLESS” relates to negative. You will find out more about this late.
This article is aim to collect all useful tricks / tips / hacks of WordPress. The final goal is to make it a ultimate reference for WordPress users and developers. Therefor this article will be continuously updated. New tricks will added and old tricks might be modified for the latest version of WordPress.
We’ve discussed about Customize Comment_form() in WordPress with the filter: comment_form_defaults. But the problem with comment_form_defaults is that it doesn’t allow you to add class to the submit button which means you can’t style the submit button. For example, I want to use Bootstrap style button for the submit button of my theme No Newz. I can’t make that happen with this filter.