امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hi,
I've got a problem I've been bashing my head with now for a while.
When a StyleProperty related to my addon is changed, I want to trigger an event.
I thought this would be possible with:
PHP:
In the dev env, the event in triggered when a value is saved.
When I install it to my live site, the event...
Read more
I've got a problem I've been bashing my head with now for a while.
When a StyleProperty related to my addon is changed, I want to trigger an event.
I thought this would be possible with:
PHP:
کد:
public static function entity_post_save(Entity $entity)
{
if ($entity instanceof StyleProperty && $entity->addon_id == 'Me/Addon') {
triggerEvent();
}
}
In the dev env, the event in triggered when a value is saved.
When I install it to my live site, the event...
Read more
