This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.


This topic contains 1 reply, has 2 voices.

Last updated by Sumit 4 years, 1 month ago.

Assigned support staff: Sumit.

Author Posts
July 20, 2015 at 2:27 pm #662631


In the file ~/inc/installer/loader.php at line 70 and 71, please consider using get_template_directory() instead of TEMPLATEPATH to increase compatibility.

I have found cases where WPML is callable before the constant is instantiated and had to change the source file manually.

July 21, 2015 at 12:38 pm #663369


Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)


Thank you for contacting support forum.

Thank you for the suggestion. But as far as I believe it can not raise any issue because TEMPLATEPATH is available just after the "setup_theme" hook.
Can you please elaborate (with example) the case so I can understand it better?


The topic ‘[Closed] Consider using get_template_directory()’ is closed to new replies.