Styles Handler
Last updated
Was this helpful?
Last updated
Was this helpful?
exposes the following public methods:
register_public_style
for adding a style to the internal frontend registration queue
deregister_public_style
for removing a style from the internal frontend registration queue
enqueue_public_style
for adding a style to the internal frontend enqueueing queue
dequeue_public_style
for removing a style from the internal frontend enqueueing queue
register_admin_style
for adding a style to the internal admin-side registration queue
deregister_admin_style
for removing a style from the internal admin-side registration queue
enqueue_admin_style
for adding a style to the internal admin-side enqueueing queue
dequeue_admin_style
for removing a style from the internal admin-side enqueueing queue
add_inline_style
for registering a CSS string to be outputted before or after another enqueued file
The methods follow almost 1-to-1 the WP scripts API, in particular the function, the function, and the function.
As mentioned on the page, the handler will automatically attempt to register/enqueue the minified version of your script (if it exists in the same folder and has the .min.css
extension) and will attempt to set the file version to the result of the PHP filemtime
function.