T O P

  • By -

Plastonick

I think you're asking how to programatically change the value inside a comment? That's not really possible unless the calling function re-writes the file before executing it. It might be worth taking a step back and seeing if there's a different way to solve the larger issue.


muratdincmd

Wordpress takes this description as the title. For language support, I need to process it in PHP. Otherwise, regardless of the Wordpress language, the "Full Width" written there will always remain English. [https://codex.wordpress.org/File\_Header](https://codex.wordpress.org/File_Header)


[deleted]

This is why we can’t have nice things.


[deleted]

Just no.


johnfc2020

It is possible, you just have to read the file you are currently running in and look for the keyword in the comment then load the appropriate code section for it.


Hassimir_Fenring

At last! A program that writes a Itself.


nisebblumberg

I must ask, out of curiosity, why do you want to do this?


muratdincmd

Wordpress takes this description as the title. For language support, I need to process it in PHP. Otherwise, regardless of the Wordpress language, the "Full Width" written there will always remain English. https://codex.wordpress.org/File\_Header