How to show content in the body with my plugin (only in frontend not backend)?

It’s a PHP syntax error. In PHP double quotes are used to open and close Strings. Since the string you’re trying to echo includes quotes you need to either properly escape the quotes so that they’re not interpreted as trying to close the string, or use single and quotes for the string, since double quotes … Read more

How can I change page content for good once a button is pressed?

Do I understand problem correctly? [QR1] -> Scan -> [Claim listing] -> [QR1->QR2 claimed] -> [QR2] Here what comes to mind class RenderPage function gen_qr(is_claimed) if (is_claimed) return generate_qr2; else return generate_qr1 function display_page() $qr_code = gen_qr(get_option(‘<page_id>_qr’)); // on button click update_option(‘<page_id>_qr’) It’s a bit schematic, but I think you got the idea. P.S. Just … Read more