Shortcodes


mame_ws_stamp_image

The shortcode [mame_ws_stamp_image] can be used to display the stamps belonging to a WooCommerce order.

Some invoice and packing slip plugin don’t run the shortcode since the code is not executed in the post loop and therefore there is no post id. In this case please use the function  Webstamp_Order::print_stamp_images_from_woocommerce_order inside a hook function.

You can optionally pass three parameters to the shortcode:

  • width: the width of the image in px.
  • height: the height of the image in px.
  • newline: possible values: 0 , 1 (standard). The value1 will print each stamp on a new line if there are multiple stamps available for one order.

Example:

[mame_ws_stamp_image width=600 height=400 newline=0]