How can I save the checkbox values on all wordpress pages for the current user?

I’m new to wordpress and I have a question
How can I save the checkbox values on all wordpress pages for the current user? For all other users, the code does not apply.
I have a code

Option One: />

`<?php

if(isset($_POST[‘check1’])){

echo ‘22222’;

}

elseif(isset($_POST[‘check2’])){

echo ‘3455’;

}

?>`

but when you go to another page, everything is reset

how do i fix it?
Tell me please

Read more here:: How can I save the checkbox values on all wordpress pages for the current user?

Leave a Reply

Your email address will not be published. Required fields are marked *