"120", "height" => "120", "color" => ""), $atts)); //Get content without tags from WP_Editor in Visual Composer $pattern = "/\\d+(,?#?\\w*\\s?;?)*/"; preg_match_all($pattern, $content, $matches); if (!empty($matches)) { if(!empty($matches[0])) { $match = $matches[0][0]; } else { return $html = '
Insert valid Pie Chart data
'; } } $id = mt_rand(1000, 9999); $html = "".trim($pie_chart_el[2])."