/>
Avatars
/>
Comment Content
/>
Comment Format
true) );
$post_types = get_post_types( $post_type_args, 'objects' );
$_ptypes = array();
$_ptypes['all'] = __('All');
foreach( $post_types as $post_type ){
if ( post_type_supports( $post_type->name, 'comments' ) ) {
$query_var = ( ! $post_type->query_var ) ? $post_type->name : $post_type->query_var ;
$label = $post_type->labels->singular_name;
$_ptypes[ $query_var ] = $label;
}
}
$_ptypes = apply_filters( 'acw_allowed_post_types', $_ptypes );
$_ptypes = ( ! is_array( $_ptypes ) ) ? (array) $_ptypes : $_ptypes ;
// Clean the values (since it can be filtered by other plugins)
$_ptypes = array_map('esc_html', $_ptypes);
/**
* Flip to clean the keys (used as