Last active
January 18, 2024 16:41
-
-
Save undfine/4ef43bc4bb3f909887f5b91a5fa8d63b to your computer and use it in GitHub Desktop.
Add Inline styles to admin backend on Wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function custom_admin_styles() { | |
| echo '<style> /*...*/ </style>'; | |
| } | |
| add_action('admin_head', 'custom_admin_styles', 99); | |
| // Alternate to hook in post-edit screen | |
| //add_action('admin_head-post.php', 'custom_admin_styles', 99); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment