Код: Выделить всё
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'));
Код: Выделить всё
[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/
Я не ожидал, что плагин_dir_path удалит каталог в конце.
Подробнее здесь: https://stackoverflow.com/questions/793 ... n-dir-path
Мобильная версия