This CSS Stuffing Works, But Is This A Good Practice?

You can use wp_add_inline_style() to add to a stylesheet that you’ve already defined, such as in your plugin. This way an options screen or other user settings can affect the final style output.

That could become very tedious, however, depending on how many changes you are giving the user the power over. However, it is the “best practice” as far as I know.

Leave a Comment