I am trying to understand how the poll answers load on the page. It seems that the public-admin.php function “return_yop_poll” gets the poll answers but then it puts the answers into a $yop_poll_public_config variable for use in the yop-poll-public.js. But I cannot find anywhere in yop-poll-public.js that calls out the answers and replaces %POLL-ANSWER-LABEL% with the poll answers.
Can you please tell me how the answers are loaded through the %POLL-ANSWER-LABEL% template variable?
- The topic ‘How do the poll answers load?’ is closed to new replies.