# customify/2.3.0/core/defaults.php

Customify, version 2.3.0. 45 lines.

- Page: https://pluginprobe.com/plugins/customify/2.3.0/code/core/defaults.php
- Raw: https://pluginprobe.com/plugins/customify/2.3.0/raw/core/defaults.php
- Modified: 2017-02-13T16:26:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/customify/2.3.0/code/core/defaults.php#L10-L20`.

```php
<?php return array
	(
		'cleanup' => array
			(
				'switch' => array('switch_not_available'),
			),

		'checks' => array
			(
				'counter' => array('is_numeric', 'not_empty'),
			),

		'processor' => array
			(
				// callback signature: (array $input, PixCustomifyProcessor $processor)

				'preupdate' => array
					(
						// callbacks to run before update process
						// cleanup and validation has been performed on data
					),
				'postupdate' => array
					(
						// callbacks to run post update
					),
			),

		'errors' => array
			(
				'is_numeric' => __('Numberic value required.', 'customify' ),
				'not_empty' => __('Field is required.', 'customify' ),
			),

		'callbacks' => array
			(
			// cleanup callbacks
				'switch_not_available' => 'pixcustomify_cleanup_switch_not_available',

			// validation callbacks
				'is_numeric' => 'pixcustomify_validate_is_numeric',
				'not_empty' => 'pixcustomify_validate_not_empty'
			)

	); # config

```
