Painbaker Well-known member Jan 5, 2021 #1 Affected version 2.2 My callback PHP: public static function renderTag($tagChildren, $tagOption, $tag, array $options, AbstractRenderer $renderer) { /** @var Entity $entity */ $entity = $options['entity']; \XF::dump($entity); } Result from Thread custom field (Rich text box): null Result from Thread post message: Last edited: Jan 5, 2021
My callback PHP: public static function renderTag($tagChildren, $tagOption, $tag, array $options, AbstractRenderer $renderer) { /** @var Entity $entity */ $entity = $options['entity']; \XF::dump($entity); } Result from Thread custom field (Rich text box): null Result from Thread post message:
Mike XenForo developer Staff member Jan 7, 2021 #2 This is something you need to account for. Entities/context for rendering is not guaranteed to be available. It's simply not available to custom fields in any context.
This is something you need to account for. Entities/context for rendering is not guaranteed to be available. It's simply not available to custom fields in any context.