0
cookies' => '<p class="comment-form-cookies-consent"><input id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' />' https://www.ozgurbilgi.net

checkbox is not selected by default. How do I do this selected? Automatically for visitors. I tried that but it didn't. checked="checked"

how can I do that? thanks

Cem
  • 11
  • 5
  • 1
    Possible duplicate of [What's the proper value for a checked attribute of an HTML checkbox?](https://stackoverflow.com/questions/7851868/whats-the-proper-value-for-a-checked-attribute-of-an-html-checkbox) – Pedro Rodrigues Sep 21 '19 at 01:15

1 Answers1

0

Its not checked ="checked" its just checked as an attribute. Consider researching your subject a bit more before posting to SO.

Input Checked Attribute

Here are some tips for posting on SO for the future:

sBucholtz
  • 74
  • 9