I have to adapt Codeigniter module to WordPress. It fetches data with SOAP protocol. It needs to use Codeigniter’s csrf_protection.

How to include Codeigniter MY_Controller class in WordPress?

class Balance extends MY_Controller
{

    public function __construct()
    {
        parent::__construct();

        $this->config->set_item('csrf_protection', TRUE);

        require_once('addons/libraries/nusoap/nusoap.php');

    }

    ...

Read more here: PHP- How to include Codeingiter class in WordPress


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: