shopp_order_management_controls

filters the markup for providing order management ui controls in the Management metabox of the Shopp Order Management.

add_filter( 'shopp_order_management_controls', [callback] )

@param string $controls the markup for providing order management ui controls in the Management metabox of the Shopp Order Management.

Description

filters the markup for providing order management ui controls in the Management metabox of the Shopp Order Management.

In Shopp 1.2, by default this filters the Print Order button ui element at the top of the Management metabox in the Order Manager. The filter could be used to hide, alter, or add to the ui of this metabox.

Example

// register filter callback
add_filter('shopp_order_management_controls', 'shopp_order_management_controls_fltr');

// create filter function
function shopp_order_management_controls_fltr( $controls ) {
    // $controls defaults to:
    // <div class="alignright"><input type="submit" value="Print Order" class="button" /></div>
    $controls = $controls . 
        '<div class="alignright"><input type="submit" value="My Function" class="button"></div>';
    return $controls;
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar