Why? The php.ini does not belong into wordpress directory, it belongs the php/webserver configuration. Do you mean the config.php for wordpress?
– Markus ZellerJul 06 '22 at 19:44
Does this answer your question? [Using Environment variables in Wordpress wp-config](https://stackoverflow.com/questions/9300950/using-environment-variables-in-wordpress-wp-config)
– zodJul 06 '22 at 19:55