How can i put code in code block?

i open the code block role editor

but i can not see the erea to putin php code like the DOC showed below

i am not sure this is somewhere i missed, or it’s a bug here at the moment.

wordpress 6.3

Are you sure you turned on PHP for the correct user role?

yes, i only have one user is administartion. it’s a testing site

Well, that’s strange. So you did have Administrator selected, right?

It should definitely work this way.

i think i am same as yours

Yep, should work like this.

Is this a fresh install?

i am not sure what you mean “fresh install”
it’s update from previously versions. but not many.

Yeah, that’s wha tI mean. I guess that’s something @Louis or @Araminta need to look into.


Hi @qiang814k,

Sorry to hear you’re experiencing trouble with enabling PHP for the Code block.

This seems odd, as I cannot reproduce this problem on my end.

Could you possibly check if any errors appear in your browser console log?

If no errors appear, kindly reach out to us at with a temporary access to your installation.
If this is possible, for security and privacy reasons, kindly send the details using our paste website, by sharing the link generated:

Thank you in advance.

send the login info to

thanks for your help.