WPDev.one
Core Function
View Source on Trac ↗

wp_get_theme_preview_path()

wp_get_theme_preview_path( mixed $current_stylesheet = null )

Filters the blog option to return the path for the previewed theme.

Parameters 0 required

Name / Type Description
$current_stylesheet
string

The current theme's stylesheet or template path.

Return Value

(string)
The previewed theme's stylesheet or template path.

Function Information

Since Version
6.3.0
Source File
wp-includes/theme-previews.php
Advertisement