Perform a quick configuration for Simple Fields plugin

It uses the default values used by FastBooking By default you only need to call in functions.php:

new SimpleFieldsQuickConfig();
author etessore
version 1.0
package classes

 Methods

Initializes the default values

__construct() 

Check if a config for the Simple Fields plugin exists, elsewhere it will add the default one.

check_config() 

For better performance this check is limited only to the admin pages, not to the public pages. So if you wanna add the default values you'll have to visit wp-admin

Set the post connectors to the given parameter

set_connectors(array $connectors) 

Parameters

$connectors

array

the post connectors

Set the post groups to the given parameter

set_groups(array $groups) 

Parameters

$groups

array

the groups

Set the post type to the given parameter

set_post_type(array $post_type) 

Parameters

$post_type

array

the post type

 Properties

 

Simple Fields connectors

$connectors : array
 

stores the Simple Fields groups

$groups : array
 

the post type

$post_type : string