shopp_ml_t

filters theme api calls for use in multi-language environments.

Deprecated, use shopp_themeapi filter instead

add_filter( 'shopp_ml_t', [callback] )


@param mixed $result the value returned from the theme api call.
@param array $options the parameters/options used for the theme api call.
@param string $tag the tag name of the theme api call
@param Object $Object the object context the theme api call is used on.

Description

filters theme api calls for use in multi-language environments.

Example

// register filter callback
add_filter('shopp_ml_t', 'shopp_ml_filter', 99, 4 ); // late priority

// create filter function
function shopp_ml_filter( $result, $options, $tag, $Object ) {
    // translate with qtranslate
    if ( function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') )
    return qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($result);

    return $result;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar