I just want to note that you shouldn't have to include the file directly. Assuming you know the class name, and it's file matches the auto loader requirements, you can just instantiate it in that class since the plugin folder is automatically added to the search path.
examples always help with theory
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Comments
examples always help with theory
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Or even just
If you don't mind updating it outside of the class.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
still guessing. haven't tried it
do you mean like this.
and you just put your class rule file in the rules folder of your plugin?
A - e.g. just copy the file of class.discussionwordmention.php
in
B - so plugins/YagaRuleAddition/default.php would be
or could you also do
option 2
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I was referring to option 1. You can put the rule files in any folder starting at the root of the plugin and the auto loader will pick it up.
I definitely suggest keeping your folders tidy as you did in your example
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Hi gents ! Since 2.2, "discussionwordmention" makes yaga crash when creating a new badge and existing rules don't work anymore ...
I'll try to fix it, but maybe you'll find a fix faster than me !