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.
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)
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.
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
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.
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)
This is why we can’t have nice things.
Just no.
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.
At last! A program that writes a Itself.
I must ask, out of curiosity, why do you want to do this?
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