Prices output in loop

Dynamically change menu items prices display in loop an example to add “from” in front of a particular menu item’s price wppizza_filter_post_prices @param: array @param: obj @param: str @return: array example: add_filter(‘wppizza_filter_post_prices’, ‘myprefix_wppizza_item_prices’, 10, 3); function myprefix_wppizza_item_prices($prices, $post, $style) { /* add “from” before price 

Additional validation function

Adding additional validation functions to fields in WPPizza -> Order form There are a number of additional javascript validation functions in-built into the plugin. However, aside from the default ones you can already select you have to selectively enable the ones that are of use 

Filters, Actions, Functions

Preamble: If you want to do any kind of wordpress development other than “point and click” or basics like css etc it is imperative to know how wordpress actions and filters work. Actions/Filters let extend or change functionality of plugins/themes (or wordpress itself for that 

Changing post type arguments

Altering WPPizza custom post type and taxonomy labels and arguments there are several filters you can use to change the WPPizza custom post type as well as taxonomies labels, arguments. Please refer to WordPress codex regarding register_posttype and register_taxonomy. wppizza_filter_cpt_lbls filter wppizza custom post type 

Global WPPizza functions

Below you will find a number of globally available WPPizza related functions you could use in your own plugin development or for use in filters / actions wppizza_is_checkout (alias of wppizza_is_orderpage) determine if the current page the user is on is the WPPizza checkout page 

WPPizza options

Filtering wppizza options (for you own plugin development for example) wppizza_filter_options if you want change any WPPizza option values depending on some arbitrary setting and or write a plugin that dynamically changes values or any other things that you can think of that needs a 

After every order

Run an action after every successful completed order wppizza_on_order_execute if you want run an action (i.e your own function/plugin) after an order has been successfully completed, you can hook into wppizza_on_order_execute @param: int @param: array (formatted array of order details) @param: array (an array of 

Currency

change the currency symbol or add a new currency wppizza_filter_currencies if you want change currency symbols for a given currency or indeed need to add a new one in case your currency is missing from the 140+ already available @param: array (array of all currencies 

wppizza / functions.php

Typically, to add your custom actions and filters you would add them to your themes or better still child-themes functions.php. (Please see here why using a child theme for any customisation is by far the better and recommended way WordPress Child Themes) However, if you 

wppizza / markup / search

Displaying WPPizza menu items in search results If you are using the Wppizza search widget WP -> Appearance -> Widgets -> WPPizza Type:Search or search widget shortcode you will most probably want to create a dedicated search template that works with your theme instead of