How to call php file in theme directory from plugin

I resolved my issue. My error came from both calling the php file from the wordpress theme and converting the html code to an object value so that jquery ajax interprets it as it should. $tmpdir = get_template_directory() . ‘/ajax_user.php’; $resumeaccount = file_get_contents($tmpdir); So I get Html content inside singles quote (value object) instead of … Read more

Can’t save changes or modify settings in Dashboard but Pages and Posts are fine

Figured it out. In an attempt to optimize Astra theme’s performance, I modified the PHP settings in cPanel > MultiPHP INI Editor based on recommendations online. However, I wasn’t careful enough with my changes. I had neglected to include M in post_max_size, using only a number. 😐 After adding it, everything started to work correctly … Read more

How to proper escape echo inside a javascript tag

Whether and how something should be escaped is largely dependent on where the data came from and how it will be used. It’s primary function is to prevent data from being interpreted as a part of the code or mechanism which the data will be contained in – we don’t want a value used in … Read more