WPPIZZA_ADMIN_{CONSTANTS}

you can overwrite the following constants by adding them to your wp-config.php

 

a) WPPIZZA_ADMIN_TEMPLATES_PERPAGE – how many templates (Wppizza->templates) per page do you want to display before pagination kicks in. Useful if there is a low max_post_vars set in your php.ini which can result in not all parameters saving when adding additional templates. If this is the case, decrease the value from the default of 5 to something lower (minimum should be 1 though)


/* 5 templates per page */
define('WPPIZZA_ADMIN_TEMPLATES_PERPAGE', 5);

 

b) WPPIZZA_ADMIN_ORDER_DELIVERED_STATUS – by default, the “order updated” time will only be updated when changing the order status (Wppizza -> order history) to “Delivered”. If you would like this time to be updated too on changing to other Statusses, set the values as below – the example below adds the ‘ACKNOWLEDGED’ status.
Possible Values to add: NEW, ACKNOWLEDGED, ON_HOLD, PROCESSED, DELIVERED, REJECTED, REFUNDED, OTHER, CUSTOM_1, CUSTOM_2, CUSTOM_3, CUSTOM_4 .

Make sure the set the value to be a serialized array.


/* update time changed on changing to DELIVERED or ACKNOWLEDGED status */
define('WPPIZZA_ADMIN_ORDER_DELIVERED_STATUS', serialize(array('DELIVERED', 'ACKNOWLEDGED')));

 

c) WPPIZZA_ADMIN_FORMFIELDS_VALIDATION_MULTISELECT – Wppizza ->formfield settings allows for selection of various javascript validations to be associated with each form field. Set below constant to true to allow for multiple validation requirements per formfield.


/* set to true to enable multiple validation on wppizza formfields */
define('WPPIZZA_ADMIN_FORMFIELDS_VALIDATION_MULTISELECT', true);

 

d) WPPIZZA_ADMIN_DASHBOARD_TRANSIENT_REPORTS_EXPIRY – The WPpizza admin dashboard widget will get updated once an hour by default (i.e every 3200 seconds).
If you wish to change this value, add the below constant, setting the required value in seconds. Note: Wppizza -> reports will always use live/non-cached data


/* set to 7200 - to update once every 2 hours only */
define('WPPIZZA_ADMIN_DASHBOARD_TRANSIENT_REPORTS_EXPIRY', 7200);

 

constants above should be added to your wp-config.php somewhere before
/* That's all, stop editing! Happy blogging. */