Merge pull request #938 from ultimatemember/fix/number_field_label

Range filter label (issue #924)
This commit is contained in:
Nikita Sinelnikov
2021-12-10 02:07:32 +02:00
committed by GitHub
+1 -1
View File
@@ -876,7 +876,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
function slider_range_placeholder( $filter, $attrs ) {
switch ( $filter ) {
default: {
$label = ucwords( str_replace( array( 'um_', '_' ), array( '', ' ' ), $filter ) );
$label = ucwords( str_replace( array( 'um_', '_' ), array( '', ' ' ), $attrs['label'] ) );
$placeholders = apply_filters( 'um_member_directory_filter_slider_range_placeholder', false, $filter );
if ( ! $placeholders ) {