'faq_heading_class'
];
/**
* Summary of default_attributes
* @return array
*/
public function default_attributes() {
return [
'groups' => '',
'class' => '',
'group_exclude' => '',
'faq_heading' => __( 'Frequently Asked Questions', 'betterdocs' ),
'faq_schema' => false
];
}
public function icons() {
$faq_markup = '';
$faq_markup .= '';
echo $faq_markup;
}
public function render( $atts, $content = null ) {
add_action( $this->icon_hook, [$this, 'icons'] );
$this->views( 'shortcodes/faq' );
remove_action( $this->icon_hook, [$this, 'icons'] );
}
public function view_params() {
$terms_query = $this->query->faq_terms_query_args( $this->attributes['groups'], $this->attributes['group_exclude'] );
$wrapper_attr = [
'class' => [
'betterdocs-faq-wrapper',
'layout-' . $this->layout,
$this->attributes['class'],
]
];
return wp_parse_args( [
'wrapper_attr' => $wrapper_attr,
'widget' => $this,
'layout' => 'list',
'terms_query_args' => $terms_query
] );
}
}