public widget_atts ( string $text ) : string | ||
$text | string | The widget text |
return | string | The filtered widget text |
function widget_atts($text)
{
Grunion_Contact_Form::style(true);
return preg_replace('/\\[contact-form([^a-zA-Z_-])/', '[contact-form widget="' . $this->current_widget_id . '"\\1', $text);
}