If you want the stylesheets registered in the backend, use the admin_enqueue_scripts action.
function wp94156_register_styles() {
wp_register_style(
'your-stylesheet',
get_stylesheet_directory_uri() . '/your-stylesheet.css',
$deps, // optional
$version // optional
);
// since you only want it registered, we won't enqueue it
}
add_action( 'admin_enqueue_scripts', 'wp94156_register_styles' );
Related Posts:
- Make the css of the widget overwrite theme css
- WordPress Plugin Look & Feel
- Making menu link open in new tab?
- ‘Customize’ button in admin bar for CSS
- plugin style conflicts, how to override? [closed]
- How to disable CSS rule in Twentythirteen style.css?
- Admin Panel pagination link styles
- Child Pages Short Code plug-in and hover capabilities?
- how to access all user dashboard on fronted page [closed]
- Adding CSS to custom post type admin page causes error
- Making that Admin Bar transparent or a blue color
- How to make a dynamic css class whose name changes every visit to confuse scraper
- Override/ignore CSS from active theme as not to interfere with my custom CSS
- Add logo to admin menu in my plugin
- Blocking Plugin Css to load custom in template directory
- What is the most efficient way of adding additional functionaliy for admin only
- How do I work with the SlideDeck plug-in?
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- Custom Plugin scripts from admin working in frontend
- how to add custom css at top above all css file for specific url
- Speed issues because of CSS & JavaScript
- Child Theme Changes Are Not Reflecting In Parent Theme
- Only Homepage not loading properly
- Hook to plugins admin settings
- Uncode theme content block header ignoring saved changes/not updating?
- Two (or more) looks, with one set of content
- Using custom JS plugins with WordPress?
- Different UI in WordPress
- Theme and plugin install or update display error in localhost
- Re-naming a theme/child theme whilst maintaining updates
- Can I make a super plugin that also has a theme?
- Reduce Drop down Menu Width in WordPress
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- Remove Duplicator plugin from admin menu if not an administrator
- Doubt using $wpbd->get_col for a single column
- Unable to upload wordpress plugins
- Is there an earlier hook than login_head or login_enqueue_scripts?
- The problem with WordPress Importer
- Theme’s default styles are overriding my plugin’s custom CSS
- See which user installed a plugin?
- Prevent WordPress installing plugins and themes via Admin
- Remove ALL css for a specific plugin page
- Edit default comments page in WP Admin
- Add a custom form on the post-new.php admin page
- All Users > User List > Update User Meta Field Inline
- Plugin Handle URL With Custom Theme
- CSS from textarea in options page to frontend what to do
- custom changes removed after plugin update
- How to read individual user’s directory and display content to that specific user?
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Guidelines / restrictions about advertising /donate begging unside wordpress plugins or themes
- How to style the RSS wordpress?
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- Can someone please tell me what is wrong with my plugin?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Admin Theme customization
- Hooking in to replace the Sidebar/Widget areas
- WSOD after upgrading to 3.1
- Display update notification messages like ‘What’s New’
- WPBakery JS composer unused css [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- Check for security updates
- Trouble with plugin styles in admin area of WordPress
- Add a CSS class based on categroy id to archive pages
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- (FES EDD) New vendor submission page is blank
- There is any way to remove post-format filter? [closed]
- Plugin-generated pages use Not Found or Pages Archive templates?
- Is there any kind of theme on WordPress to sell my own movies?
- Create custom registration form for WordPress Multisite
- Admin accounts unable to see plugins from external IP
- Removing included CSS file that doesn’t exist
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- Classified ad website : which solutions to use? [closed]
- How to hide CSS by default and show on button press
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- How to create an input field, and base the output on spreadsheet data? [closed]
- Linux Permissions and Ownership for WordPress
- posts comments goes to trash
- WordPress site periodically goes down
- Masonry images not working
- WordPress plugin output formatting
- Plugin dependencies: show notice like theme plugins dependencies
- Advanced Custom Field DatePicker [closed]
- Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()
- WordPress wp-admin/network/plugin-install
- How to set add question capability for author role in wp pro quiz plugin
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- All sites themes functions.php have been changed
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Homemade plugin while using Themify Ultra
- Ajax Search Lite: Customize Autoscroll
- Delete mobile menu button [closed]
- Widgets Scripts don’t load – but load when I reload the page
- Why namespaces are rarely used in WordPress plugins?
- What will happen if i deactivate my visual composer plug in? [closed]
- Ability to automatically redirect a URL
- Finding the URL to be used to check if plugin is installed with a theme
- Theme/Plugin installation through url on button click