Код: Выделить всё
error_log('--> plugin_dir_path ' . plugin_dir_path('/includes/phpspreadsheet-3.7.0/src/'));
error_log('--> plugin_dir_path 2 ' . plugin_dir_path('/includes/phpspreadsheet-3.7.0/src/src'));
< /code>
Результаты журналов выше: < /p>
[07-Jan-2025 11:15:00 UTC] --> plugin_dir_path /includes/phpspreadsheet-3.7.0/
[07-Jan-2025 11:15:00 UTC] --> plugin_dir_path 2 /includes/phpspreadsheet-3.7.0/src/
Я не ожидал>
Подробнее здесь: https://stackoverflow.com/questions/793 ... n-dir-path