This filter is used for adding or deleting some items in sorting items
Changelog
Added in version 7.0.0
Parameters
1. $button (type: array) – the array of the sorting buttons
Usage
add_filter("wpdiscuz_sorting_buttons_array", function ($buttons) { $buttons[] = [ "orderBy" => "comment_date", "order" => "desc", "class" => "wpdiscuz-custom-sort", "text" => "Custom", "type" => "custom", ]; return $buttons; });