shopp_errors_page

filters the error template content before outputting errors.

add_filter( 'shopp_errors_page', [callback] )

@param string $content the error template content

Description

filters the error template content before outputting errors.

Example

// register filter callback
add_filter('shopp_errors_page', 'shopp_errors_page_filter');

remove_filter('shopp_errors_page', 'shoppdiv');

// create filter function
function shopp_errors_page_filter( $content ) {
    $before = '<div id="shopp" class="errors myclass1 myclass2">';
    $after = '</div>';
    return $before . $content . $after;
}

See Also

  1. Avatar of esryl

    How do you remove the shoppdiv filter, it does not seem to work?

    October 2nd   #

You must be logged in to post a comment.

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

Skip to toolbar