Snippi
A super awesome snippet tool.
- 1.
public function parse_args( $args ) {
- 2.
- 3.
$args = wp_parse_args( $args, array(
- 4.
'form_id' => false,
- 5.
'field_id' => false,
- 6.
'input_id' => false,
- 7.
'stock_qty' => false,
- 8.
'out_of_stock_message' => __( 'Sorry, this item is out of stock.' ),
- 9.
'not_enough_stock_message' => __( 'You ordered %1$s of this item but there are only %2$s of this item left.' ),
- 10.
'approved_payments_only' => false,
- 11.
'hide_form' => false,
- 12.
'enable_notifications' => false,
- 13.
'field_group' => array()
- 14.
) );