After all, I know what variable it creates and I’m using a prefix for all of them. How Envato deals with this. What are the rules of Envato when writing code?
There are no specific guidelines and instructions as provided by Envato. But if you are newbie once you have submitted the code and if there are any issues in it you will get reviewers feedback. Once received you may ask the reviewer to provide the guidelines too
Thank you
Using function_exists allows your customers to override your functions via a child theme.
What are the rules of Envato when writing code
Try to think of any code requirements less as something forced by Envato and more like making your themes/plugins better and easier to customize.
Thank you friends
most welcome
I understand the thing between === and ==, I think one provides equality with values while the other provides with data types, but I don’t know exactly when and why I should use which. Because == works for me everywhere but I think it’s healthier to use ===.
But when should I use which one?
Also, I did not fully understand this.
Using the POSIX regex functions ereg_* aren’t allowed.
but I don’t know exactly when and why I should use which. Because == works for me everywhere but I think it’s healthier to use ===
Requirements in the screenshot by @promotionking states that you should always use “===”. “==” is only for very specific use cases, I personally probably never used it in any of my themes. If you do not know which one to use then just use “===”.
understood thanks
Appreciate that