/** * AJAX Add Icon Font. */ public static function add_iconfont() { check_ajax_referer('add-custom-iconfont', 'security'); if (!current_user_can('manage_axiscomposer')) { die(-1); } // Get the zip file path. $value = $_POST['value']; $zip_file = realpath(get_attached_file($value['id'])); // Unpack a compressed package file. $unpack = AC_Iconfont::unpack_package($zip_file); }