XF 2.2 is there a way to change xenforo stock options via addon install

Idhae

Active member
Hello,
does someone know a way to change xenforo default options via custom addon install?
For example the option allowGuestRte should always enabled for our projects.

Greetings
 
Code:
\XF::repository('XF:Option')->updateOption('allowGuestRte', 1);
(There's actually a bug right now in how this option is defined; it should have a boolean data type but it was incorrectly set to string. I believe setting to true / false should work as well but either should work fine.)
 
Last edited:
Top Bottom