-1
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

0

1 Answer 1

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:

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.