When saving via an action, forward the action to the TCF model automatically. E.g. "Accept all"
should activate all, and "Accept only essentials" should only accept essentials + legitimate interests.
Modifies also consentScreen in TCF string; currently not necessary, but just to be sure:
0 = First view
1 = Second view
10 = Shortcode revoke link
20 = Content Blocker
You need to call the returned function to get the encoded TC string as encoding is very expensive.
When saving via an action, forward the action to the TCF model automatically. E.g. "Accept all" should activate all, and "Accept only essentials" should only accept essentials + legitimate interests.
Modifies also
consentScreen
in TCF string; currently not necessary, but just to be sure:You need to call the returned function to get the encoded TC string as encoding is very expensive.