<?php 
/**
 * required params for js 
 * <input type="hidden" name="selected-task-id" value="" id="selected-task-id" /> 
 * <input type="hidden" name="selected-task" value="" id="selected-task" /> 
 * <input type="hidden" name="selected-result-id" value="" id="selected-result-id" />
 * 
 * user inputs for ajax call for addons
 */
defined( 'ABSPATH' ) || exit;

/**
 * $html = existing html
 * $result_id = result id
 * $user_id = user id
 * $type = Block where this addon will be shown (instructor, ai, both, individual)
 * individual = for writing and speaking both outside any payment block 
 * both = for writing payment block
 * instructor = for speaking instructor payment block
 * ai = for speaking ai payment block
 */
add_filter('st_proqyz_payment_addons', 'st_proqyz_payment_addons_callback', 10, 2);
function st_proqyz_payment_addons_callback($html, $params = []){
    $result_id = $params['result_id'];
    $user_id = $params['user_id'];
    $type = $params['type'];
    $html .= '';
    return $html;
}