str_replace inside specific css files [closed]
No, because the CSS file isn’t loaded in and parsed by PHP—it’s just “printed” to the browser at the appropriate time. You can, however, add inline styles to an enqueued stylesheet, which you would then be able to manipulate with filters. In the code snippet below, let’s assume you’re using wp-content/plugins/my-plugin/assets/style.css. add_action( ‘wp_enqueue_scripts’, ‘wpse406238_inline_css’ ); … Read more