Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use self::instance() instead.
Tribe__Customizer::__construct()
Loads the Basic Settings for the Class to work
See also
Return
(void)
Source
File: src/Tribe/Customizer.php
public function __construct() {
if ( ! $this->is_active() ) {
return;
}
/**
* Filters the Panel ID, which is also the `wp_option` name for the Customizer settings
*
* @since 4.4
*
* @param string $ID
* @param self $customizer
*/
$this->ID = apply_filters( 'tribe_customizer_panel_id', 'tribe_customizer', $this );
// Hook the Registering methods
add_action( 'customize_register', array( $this, 'register' ), 15 );
add_action( 'wp_print_footer_scripts', array( $this, 'print_css_template' ), 15 );
// front end styles from customizer
add_action( 'wp_enqueue_scripts', array( $this, 'inline_style' ), 15 );
add_action( 'tribe_events_pro_widget_render', array( $this, 'inline_style' ), 101 );
add_action( 'wp_print_footer_scripts', array( $this, 'shortcode_inline_style' ), 5 );
add_filter( "default_option_{$this->ID}", array( $this, 'maybe_fallback_get_option' ) );
}
Changelog
| Version | Description |
|---|---|
| 4.0 | Introduced. |