PHP - 如何在DataTables编辑器中使用BCRYPT加密密码字段?

In one of my PHP based application, I am using DataTables Editor for CRUD functionality. Everything is OK until when I am trying to register a user. I want to use a custom hashing/encryption using PHP PASSWORD_BCRYPT rather than the DataTables default one.

But the problem is I can't figure out where I need to do that and how to do that!

Here is the function that I want to use in *DataTables Editor for password hashing/encryption.

function encryption($password)
    {
        $data = $password;
        $hash = "";
        if (version_compare(PHP_VERSION, '7.0', '>=')) {
            $hash = password_hash($data, PASSWORD_BCRYPT);
        } else {
            $options = [
                'cost' => 10,
                'salt' => mcrypt_create_iv(22, MCRYPT_DEV_URANDOM),
            ];
            $hash = password_hash($data, PASSWORD_BCRYPT, $options); //options is deprecated from PHP 7.0
        }

        return $hash;
    }

Can anyone help me?