acf_form_customizer::__construct
This function will setup the class functionality
Метод класса: acf_form_customizer{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$acf_form_customizer = new acf_form_customizer(); $acf_form_customizer->__construct();
Список изменений
| С версии 5.0.0 | Введена. |
Код acf_form_customizer::__construct() acf form customizer:: construct ACF 6.4.2
function __construct() {
// vars
$this->preview_values = array();
$this->preview_fields = array();
$this->preview_errors = array();
// actions
add_action( 'customize_controls_init', array( $this, 'customize_controls_init' ) );
add_action( 'customize_preview_init', array( $this, 'customize_preview_init' ), 1, 1 );
add_action( 'customize_save', array( $this, 'customize_save' ), 1, 1 );
// save
add_filter( 'widget_update_callback', array( $this, 'save_widget' ), 10, 4 );
}