Title: wp_load.php “Hook custom_css_loaded is deprecated&#8221;
Last modified: June 6, 2024

---

# wp_load.php “Hook custom_css_loaded is deprecated”

 *  Resolved [greentp](https://wordpress.org/support/users/greentp/)
 * (@greentp)
 * [2 years ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/)
 * I have a PHP application which is authenticating users against WordPress by including
   wp_load.php and then using wp_authenticate() etc. In the last couple of days 
   I have started getting the following errors every time the application includes
   wp_load.php:
 *     ```wp-block-code
       E_USER_DEPRECATED in /home/****/public_html/wp-includes/functions.php at line 6078
       Hook custom_css_loaded is deprecated since version jetpack-13.5! Use WordPress Custom CSS instead. Jetpack no longer supports Custom CSS. Read the WordPress.org documentation to learn how to apply custom styles to your site: https://wordpress.org/documentation/article/styles-overview/#applying-custom-css
       #0 MRBS\generate_backtrace() called at [/home/****/public_html/book/functions_error.inc:228]
       #1 MRBS\output_error() called at [/home/****/public_html/book/functions_error.inc:274]
       #2 MRBS\error_handler()
       #3 trigger_error() called at [/home/****/public_html/wp-includes/functions.php:6078]
       #4 wp_trigger_error() called at [/home/****/public_html/wp-includes/functions.php:5941]
       #5 _deprecated_hook() called at [/home/****/public_html/wp-content/plugins/jetpack/modules/custom-css.php:35]
       #6 custom_css_loaded() called at [/home/****/public_html/wp-includes/class-wp-hook.php:324]
       #7 WP_Hook->apply_filters() called at [/home/****/public_html/wp-includes/class-wp-hook.php:348]
       #8 WP_Hook->do_action() called at [/home/****/public_html/wp-includes/plugin.php:517]
       #9 do_action() called at [/home/****/public_html/wp-content/plugins/jetpack/class.jetpack.php:1854]
       #10 Jetpack::load_modules() called at [/home/****/public_html/wp-includes/class-wp-hook.php:324]
       #11 WP_Hook->apply_filters() called at [/home/****/public_html/wp-includes/class-wp-hook.php:348]
       #12 WP_Hook->do_action() called at [/home/****/public_html/wp-includes/plugin.php:517]
       #13 do_action() called at [/home/****/public_html/wp-settings.php:550]
       #14 require_once(/home/****/public_html/wp-settings.php) called at [/home/****/public_html/wp-config.php:66]
       #15 require_once(/home/****/public_html/wp-config.php) called at [/home/****/public_html/wp-load.php:50]
       ```
   
 * I am using the Twenty Sixteen theme. Deactivating Jetpack makes the problem go
   away.
 * Any ideas?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Mohamed Mehdi Benchalal](https://wordpress.org/support/users/muffinpeace/)
 * (@muffinpeace)
 * [2 years ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17809663)
 * Hi [@greentp](https://wordpress.org/support/users/greentp/)
 * Can you share your website’s URL along with the name of the specific PHP app 
   you are using? This will allow us to look closely into the issue. If you wish
   that to be private, you can use the [contact form instead](https://jetpackme.wordpress.com/contact-support/).
 * Looking forward to your reply.
 *  Thread Starter [greentp](https://wordpress.org/support/users/greentp/)
 * (@greentp)
 * [2 years ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17811327)
 * I’ve investigated it a bit more and found that it’s nothing to do with wp_load.
   php and the PHP app. It was just the error handling in the app that was alerting
   me to the issue and I now see that the debug.log is filling up with similar messages
   when I am just in the dashboard. I have found [this post](https://jetpack.com/support/custom-css/)
   but am a bit confused by it. I am using the Twenty Sixteen theme with additional
   CSS. What do I need to do?
    -  This reply was modified 2 years ago by [greentp](https://wordpress.org/support/users/greentp/).
 *  Thread Starter [greentp](https://wordpress.org/support/users/greentp/)
 * (@greentp)
 * [2 years ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17811917)
 * Does it mean that I can’t add additional CSS without updating to a block-based
   theme? Or can I still add additional CSS to Twenty Sixteen by temporarily enabling
   the “Enhance CSS customisation panel” button to add the CSS and them disabling
   it afterwards to get rid of the deprecation notice?
 *  [Gaurav](https://wordpress.org/support/users/gaurav984/)
 * (@gaurav984)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17817220)
 * Hi [@greentp](https://wordpress.org/support/users/greentp/),
 * Thanks for getting back to us! I recommend adding the custom css on your website
   using WordPress Admin -> APPEARANCE -> CUSTOMIZE panel. Here you can add your
   custom CSS to override the defaults that came with your theme, plugins and WordPress(
   where applicable).
 * Along with this if you have added custom CSS code using Jetpack I recommend moving
   this CSS code to the theme customize panel too.
 * In case you are using SCSS or LESS you can first convert these into CSS and then
   add them to the theme customizer.
 * Best,
 *  Thread Starter [greentp](https://wordpress.org/support/users/greentp/)
 * (@greentp)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17817392)
 * Ok, thanks. I think what you are saying is that Appearance -> Additional CSS 
   no longer works (without triggering the deprecation notice), but that Appearance-
   > Customize -> Additional CSS does, albeit without SCSS or LESS support. Is that
   correct? It’s a bit confusing!
 *  [charlesmdq](https://wordpress.org/support/users/charlesmdq/)
 * (@charlesmdq)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17820356)
 * The same thing happened to me, I could not log in and I got the error that appears.
   I solved it by first disabling the debug in wp-config, then it allows you to 
   enter the administrator, there you have to go to jetpack /wp-admin/admin.php?
   page=jetpack#/writing and disable “custom css”. Regards
    -  This reply was modified 1 year, 12 months ago by [charlesmdq](https://wordpress.org/support/users/charlesmdq/).
 *  Plugin Contributor [njweller](https://wordpress.org/support/users/njweller/)
 * (@njweller)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17820753)
 * Hey there [@greentp](https://wordpress.org/support/users/greentp/)!
 * **TLDR – you can turn off the Jetpack Custom CSS feature and still write custom
   styles for your site using the WordPress Customizer, without changing your theme.**
 * The **Appearance -> Additional CSS** section will still work, and should take
   you to the following URL on your site: `wp-admin/customize.php?autofocus[section]
   =custom_css`
 * Any existing custom styles will still be available, but turning off the Jetpack
   feature will essentially remove support for using SCSS/LESS in your custom CSS,
   and the ability to completely disable the current theme’s styles.
 * *_If you are currently using SCSS/LESS in your custom styles, I would recommend
   converting them to standard CSS before turning off the Jetpack feature._
 * For context, Jetpack added this custom CSS feature a long time ago, back when
   WordPress didn’t offer this built-in. We had some extra fancy things in there,
   such as supporting SCSS or LESS, turning off the current theme stylesheet, and
   overriding default WordPress image sizes. Now that WordPress has supported custom
   CSS for a long while, we are removing the redundancy!
 * You can find more information regarding this particular deprecation notice here:
   
   [https://jetpack.com/support/custom-css/](https://jetpack.com/support/custom-css/)
 * Hopefully this clarifies things, please let us know if you have further questions
   about this!
 *  Plugin Contributor [njweller](https://wordpress.org/support/users/njweller/)
 * (@njweller)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17820762)
 * As an aside, to build on [@charlesmdq](https://wordpress.org/support/users/charlesmdq/)
   answer – I would recommend keeping `WP_DEBUG` disabled when your site is in production,
   and only enabling it in testing and development environments. This ensures that
   PHP warnings and deprecation notices like these are not shown to your users.
 * More info on modifying this value can be found here: [https://jetpack.com/blog/wp-config-php/](https://jetpack.com/blog/wp-config-php/)
 *  Plugin Contributor [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * (@erania-pinnera)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17837592)
 * Hi there, [@charlesmdq](https://wordpress.org/support/users/charlesmdq/),
 * I hope the answers provided helped! I’m going to mark this thread as solved. 
   If you have any further questions or need more help, you’re welcome to open another
   thread here. Cheers!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘wp_load.php “Hook custom_css_loaded is deprecated”’ is closed to new 
replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)

 * 9 replies
 * 7 participants
 * Last reply from: [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/wp_load-php-hook-custom_css_loaded-is-deprecated/#post-17837592)
 * Status: resolved