Home Forums WTI Like Post PRO Not working in Ajax loaded items Reply To: Not working in Ajax loaded items


I was receiving the error Fatal error: Call to undefined function GetWtiLikePost() when loading posts through AJAX. I was able to fix it by changing line 367 in wti_like_post.php to if (is_admin() && !( defined('DOING_AJAX') && DOING_AJAX )) {

The problem is, calls from admin_ajax.php make all checks on is_admin() return true, so the other plugin files and scripts weren’t being included.