*/ public $display_types = array( 'terms' ); /** * Sanitize the shortcode attribute. * * @param string $value The value of the shortcode attribute. * @param array $attributes The complete set of shortcode attributes. * @return string The sanitized value. */ public function sanitize_attribute( $value, array $attributes ) { $value = trim( $value ); return $value ? $value : ''; } /** * Update the query with this extension's additional configuration. * * @param \eslin87\AlphaListing\Query $query The query. * @param string $display The display/query type. * @param string $key The name of the attribute. * @param mixed $value The shortcode attribute value. * @param array $attributes The complete set of shortcode attributes. * @return mixed The updated query. */ public function shortcode_query_for_display_and_attribute( $query, string $display, string $key, $value, array $attributes ) { $query['taxonomy'] = Strings::maybe_mb_split( ',', $value ); return $query; } }