Use $variable from file1.php in file2.php (different file paths)

Question

I have $variable_1 = '5'; in /public/includes/themes/theme-section-users-score.php and I want to use its value in another php file with a different location /plugins/name/other/users-time.php , I tried using include_once , require_once and others but I can’t, might be the .htaccess doesn’t allow me? please help, thanks in advance.

0
WordPressGeek 2 years 2020-12-31T12:10:20-05:00 0 Answers 5 views 0

Leave an answer

Browse
Browse