• With the new version 6.4.1, which introduces the global variable $wp_stylesheet_path, there is no way to setup a dedicated stylesheet directory in the theme.

    During the very early process of constants initialization , the function get_directory_stylesheet() is called in the file default-constants.php line 422 (called from line 578 in wp-settings.php) and set the global variable before the loading of the functions.php file of the theme which happens only line 609 of the file wp-settings.php

    • This topic was modified 2 years, 6 months ago by Yui. Reason: no idea why this's been set NSFW
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘stylesheet_directory filter called too early’ is closed to new replies.