You need to change the value of bloginfo ('stylesheet_url') to override the styles folder.
Where is this value recorded?
You need to change the value of bloginfo ('stylesheet_url') to override the styles folder.
Where is this value recorded?
bloginfo ('stylesheet_uri') returns a link to the current theme style file as
http://site.org/wp-content/themes/ваша-тема/style.css You can override this output with a filter.
add_filter( 'stylesheet_uri', 'filter_stylesheet_uri' ); function filter_stylesheet_uri( $stylesheet_uri, $stylesheet_dir_uri ) { $uri = ... // ваш код return $uri; } But how it will work in your case is unknown. Many themes and plugins use get_stylesheet_directory_uri() to access the theme files.
And yes, a direct answer to your question: where is recorded. In the database, of course. In the wp_options table wp_options is an entry with option_name=stylesheet .
Source: https://ru.stackoverflow.com/questions/762770/
All Articles