{"id":18940928,"date":"2026-06-17T11:47:00","date_gmt":"2026-06-17T11:47:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/timer-problem\/"},"modified":"2026-06-17T11:47:00","modified_gmt":"2026-06-17T11:47:00","slug":"timer-problem","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/timer-problem\/","title":{"rendered":"Timer problem"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I recently updated HD Quiz to the latest version. Before the update, you provided me with the following code to automatically start the quiz after a few seconds because some users could not find the Start Quiz button:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function hdq_mehdis6211_init($data)\n{\n    array_push($data-&gt;hdq_init, \"hdq_mehdis6211_after\");\n    return $data;\n}\nadd_action(\"hdq_init\", \"hdq_mehdis6211_init\");\n\nfunction hdq_mehdis6211_after()\n{\n?&gt;\n&lt;script&gt;\nfunction hdq_mehdis6211_after(){\n    const sel = document.getElementsByClassName(\"hdq_quiz_start\");\n    if(sel.length == 0){\n        return;\n    }\n    setTimeout(function(){sel&#091;0].click();}, 1500);\n}\n&lt;\/script&gt;\n&lt;?php\n}\nadd_action(\"hdq_after\", \"hdq_mehdis6211_after\");\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Since updating to the latest version, a small number of users have reported that when they click the &#8220;Start Quiz&#8221; button, nothing happens and the quiz does not begin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have tested the quizzes myself on multiple PCs and mobile devices, and everything works correctly for me. However, the users who reported the issue were using older Android versions (Android 9, 10, and 11).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Could you please confirm whether this custom auto-start code is still fully compatible with the latest version of HD Quiz? Has anything changed in the quiz initialization process or the <code>.hdq_quiz_start<\/code> button that could cause issues on some devices or browsers?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thank you.<\/p>\n","protected":false},"template":"","class_list":["post-18940928","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18940928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18940928\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18940928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}