Title: Deprecated: Function wp_get_loading_attr_default is deprecated
Last modified: July 18, 2024

---

# Deprecated: Function wp_get_loading_attr_default is deprecated

 *  Resolved [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-function-wp_get_loading_attr_default-is-deprecated/)
 * I’ve just downloaded this plugin, and am working on integrating it into a template
   file. Thanks so much for making this available!
 * When I try to output one of the thumbnail images (using either the shortcode 
   or the get_pdf_thumbnail_image template tag) I get this notice:
 *     ```wp-block-code
       Deprecated: Function wp_get_loading_attr_default is deprecated since version 6.3.0! Use wp_get_loading_optimization_attributes() instead. in /{pathtomyfiles}/wp-includes/functions.php on line 6078
       ```
   
 * wp_get_loading_attr_default appears on line 367 of your plugin.
 * Any update in the works for that? Any work-around that you can suggest in the
   meantime?

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

 *  Thread Starter [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-function-wp_get_loading_attr_default-is-deprecated/#post-17899804)
 * As a temporary workaround, in PHP version 8+ @ symbol before a function call 
   suppresses deprecated notices:
 *     ```wp-block-code
       @get_pdf_thumbnail_image( $pdf_id );
       ```
   
 *  Plugin Author [kubiq](https://wordpress.org/support/users/kubiq/)
 * (@kubiq)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-function-wp_get_loading_attr_default-is-deprecated/#post-17900275)
 * Hi,
 * it’s just a deprecation notice… nothing you should worry about 😉
 * I will ofc take a look on it, but it will not affect anything right now, so there
   is no need for any workarounds
 *  Thread Starter [hommealone](https://wordpress.org/support/users/hommealone/)
 * (@hommealone)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-function-wp_get_loading_attr_default-is-deprecated/#post-17901677)
 * The only time that there _is_ a need for a workaround is when, like me, you are
   working in a development-type situation, in which you have error notices being
   displayed while you build the site. In this situation, the deprecation notice
   is shown on the screen, and breaks the page layout. 😉
 * But the [@function](https://wordpress.org/support/users/function/)() workaround
   works fine, so I’m all set.
 * Thanks again for providing this very useful plugin in the WordPress repository!
   Much appreciated.

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

The topic ‘Deprecated: Function wp_get_loading_attr_default is deprecated’ is closed
to new replies.

 * ![](https://ps.w.org/pdf-thumbnail-generator/assets/icon.svg?rev=2753908)
 * [PDF Thumbnail Generator](https://wordpress.org/plugins/pdf-thumbnail-generator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pdf-thumbnail-generator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pdf-thumbnail-generator/)
 * [Active Topics](https://wordpress.org/support/plugin/pdf-thumbnail-generator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pdf-thumbnail-generator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pdf-thumbnail-generator/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [hommealone](https://wordpress.org/support/users/hommealone/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/deprecated-function-wp_get_loading_attr_default-is-deprecated/#post-17901677)
 * Status: resolved