wp_initialize_theme_preview_hooks


wp_initialize_theme_preview_hooks ( No parameters )

Defined at:

Description

Add filters and actions to enable Block Theme Previews in the Site Editor.The filters and actions should be added after `pluggable.php` is included as they may trigger code that uses `current_user_can()` which requires functionality from `pluggable.php`.

Related Functions

wp_get_theme_preview_path, wp_initialize_site, create_initial_theme_features, wp_attach_theme_preview_middleware, wp_initial_nav_menu_meta_boxes

Top Google Results

User discussions

wpseek mobile