There is a global variable named $wp_styles
. It is a WP_Styles
object (if it exists at all) and it holds all the enqueued styles in a public variable $queue
.
Untested:
global $wp_styles;
if ( is_a( $wp_styles, 'WP_Styles' ) )
{
print_r( $wp_styles->queue );
}
else
{
print 'no styles enqueued';
}
Make sure you test that after the init
hook, because stylesheets should not be enqueued earlier.
For details see:
/wp-includes/functions.wp-styles.php
,/wp-includes/class.wp-styles.php
and/wp-includes/class.wp-dependencies.php
Related Posts:
- Assign a Class to the Current “Tag” for Formatting
- How can I remove css from a child theme?
- How do I add Bootstrap and LESS to my migrated WordPress site?
- Display Something in the Header After All Styles are Loaded
- How can I add inline CSS for each image?
- Dequeue styles with query doesn’t work
- Current Post/Page Ancestor, CSS
- force footer on bottom on pages with little content
- Dynamically change color to lighter or darker by percentage CSS
- CSS “margin: 0 auto” not centering
- JavaFX css themes
- Border Position
- Bootstrap align navbar items to the right
- Detect if a browser in a mobile device (iOS/Android phone/tablet) is used
- Using font awesome in codepen
- using media queries with LESS
- How to get multiple images to auto resize and stay centered within a div
- CSS rotation cross browser with jquery.animate()
- How can I center
- into a div?
- Remove Editor From Homepage
- How to specify a class added to my gallery
- How to add a “last” class to the last post in loop.php?
- Style new block-editor alignfull class without scrollbars or overflow
- How to make post and comment count unclickable with dashboard_glance_items hook
- Changing title to lowercase [closed]
- How can I insert HTML attributes with an existing TinyMCE button?
- Hiding certain panels in dashboard
- how to make stylesheet appear in theme editor?
- How to change the order of the comment_form fields with css?
- How can I enqueue a style only when a particular widget is active?
- How to add custom content under plugin row in WordPress admin plugin list?
- customizing recent posts
- Anonymous function is executed twice in wp_head while added from the_posts filter?
- Why is WordPress changing my HTML code
- Is there a Woocommerce hook that fires when applying a coupon but before checking if it’s valid?
- Best way to install Bulma (CSS Framework) with WordPress and Genesis
- Remove sticky behavior from top navigation on twenty fourteen theme?
- How to generate numbers indistinguishable for the IDs of the posts
- Include CSS with PHP without including wp-load?
- Loading different stylesheet on WordPress pages?
- Different css rules for TinyMCE and Gutenberg while using add_editor_style()
- How to create a custom CSS class for a specific page template?
- Remove inline styles from the_content?
- Gallery CSS Problem
- Responsive Author Style in BBpress?
- Older isotope portfolio rows shifting downward by 1 pixel on hover
- Shrink Header Image on Scroll
- Inline Style attribute getting stripped off
- What does generate .less file? [closed]
- Can’t Display Table Headers in Responsive table layout
- Valid filenames for add_action’s first parameter
- Load jQuery only on home page
- how to hide submenus for the not active pages
- Why is the CSS horizontal alignment for divs inside div container not displayed in my WP Theme?
- Keeping CSS model open after form submission
- Sidebar button click redirect when user is not logged in instead displays it
- Add a filter to an action [closed]
- Add class to navigation link of page
- Prevent posts with certain post_meta to be edited
- Keep comments but turn off commenting
- How to remove Author and Category from a single portfolio page? [closed]
- why is my paypal button not clicable [closed]
- Most performant/functional way to add actions/filters?
- How can I selectively insert a header for my shop page in woocommerce? [closed]
- Change the search icon in twenty fourteen
- styling isnot working in wordpress theme
- Making an add_filter() call from within an add_filter() call
- Action hook to control access to certain parts of my site
- Finding actual functions added to hooks and filters
- Using True Type Fonts (ttf) [closed]
- Horizontal drop down category with hover effect working
- Child Theme style.css changes aren’t showing. Parent “style-less.css” over rides it, and won’t update
- apply_filters() and call_user_func() to define and call a function outside a class
- Broken css on mobile phones only on https
- Trying to hide HENTRY (Author Meta Data) from a Post ID
- Probleme d’emplacement
- Getting and setting CSS variables with JQuery in WordPress backend fails
- Theme: Twentynineteen // How to exclude cookie-control triangle and star svg from being overwridden by theme css “svg { fill: currentColor; }”
- I want to hide “sold by” on certain pages with id page 43
- CSS does not Update
- Use action, filter, or hook to append HTML to WordPress plugin function
- Need help removing block of white space between footer widgets and footer [closed]
- Why child theme stylesheet takes long time to update?
- Navigation menu disappears when I hover the mouse [closed]
- Force include a stylesheet from parent theme
- Head section of the wordpress blog
- Site name not showing in browser bar, only url
- Pages in another language
- Using a style sheet for modern browsers and another for older browsers
- How to insert a clickable and fixed background [duplicate]
- Use of CSS classes in editor-blocks.css file
- Problems when writing a post
- Will the following code make my css deal with images in the optimum way?
- Interactive maps in wordpress
- WordPress CSS not working properly
- Add Custom CSS Class in Child Theme [closed]
- Min height of page [closed]
- WordPress site suddenly not showing some DOM elements but mobile is fine
- Editing size of h3 tag in wordpress on a one-off basis
- Content doesn’t fit on large size desktops like 2560×1440