WP_Customize_Selective_Refresh::init_preview()
Initializes the Customizer preview.
Метод класса: WP_Customize_Selective_Refresh{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Customize_Selective_Refresh = new WP_Customize_Selective_Refresh(); $WP_Customize_Selective_Refresh->init_preview();
Список изменений
С версии 4.5.0 | Введена. |
Код WP_Customize_Selective_Refresh::init_preview() WP Customize Selective Refresh::init preview WP 6.6.2
public function init_preview() { add_action( 'template_redirect', array( $this, 'handle_render_partials_request' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) ); }