shopp_shortword_search

filters the search terms after shortword filtering.

add_filter( 'shopp_shortword_search', [callback] )

@param string $search the search terms after shortword filtering.

Description

filters the search terms after shortword filtering.

Example

// register filter callback
add_filter('shopp_shortword_search', 'shopp_shortword_search_fltr');

// create filter function
function shopp_shortword_search_fltr( $search ) {
    // the system default short-word filters
    if ( class_exists('ShortwordParser') ) {
        $search = ShortwordParser::MarkupFilter($search);
        $search = ShortwordParser::CurrencyFilter($search);
        $search = ShortwordParser::AccentFilter($search);
        $search = ShortwordParser::LowercaseFilter($search);
        $search = ShortwordParser::ShortwordFilter($search);
        $search = ShortwordParser::NormalizeFilter($search);
    }

    return $search;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar