__( 'Default sorting', 'propertyhive' ), 'date' => __( 'Sort by date added', 'propertyhive' ), 'price-asc' => __( 'Sort by price: low to high', 'propertyhive' ), 'price-desc' => __( 'Sort by price: high to low', 'propertyhive' ), ) ); } else { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. $results_orderby = apply_filters( 'propertyhive_results_orderby', array( 'floor_area-desc' => __( 'Default sorting', 'propertyhive' ), 'date' => __( 'Sort by date added', 'propertyhive' ), 'floor_area-asc' => __( 'Sort by floor area: low to high', 'propertyhive' ), 'floor_area-desc' => __( 'Sort by floor area: high to low', 'propertyhive' ), 'price-asc' => __( 'Sort by price: low to high', 'propertyhive' ), 'price-desc' => __( 'Sort by price: high to low', 'propertyhive' ), ) ); } if ( !empty($results_orderby) ) { ?> $val ) { if ( 'orderby' === $key || 'submit' === $key ) continue; if ( is_array( $val ) ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone. foreach( $val as $innerVal ) { echo ''; } } else { echo ''; } } ?>