Title: <abbr title="Not Safe For Work / Mature content">[NSFW]</abbr> get_data() function is not working when your plugin is install
Last modified: July 3, 2023

---

# [NSFW] get_data() function is not working when your plugin is install

 *  Resolved [Utsav tilava](https://wordpress.org/support/users/utsav72640/)
 * (@utsav72640)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/get_data-function-is-not-working-when-your-plugin-is-install/)
 * When i am install your plugin it will be showing this error. **Fatal error: Uncaught
   Error: Call to a member function get_data() on bool in**
 * i am checking code and find out, there is a problem with get_data() function.
   and it’s default function so May i suggest default woocomerce function always
   be working do not close default functionality. Now can you please help me out
   of my code which i am shared below
 * i am using this code,
 * $getOrderproductmname = wc_get_order($dhl_order_id);
 * $getOrderproductdata = $getOrderproductmname->get_data();
 * and i have facing error like this, **Fatal error**: Uncaught Error: Call to a
   member function get_data() on bool in
 * So how can i solve this problem can you please help me!!!

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

 *  Thread Starter [Utsav tilava](https://wordpress.org/support/users/utsav72640/)
 * (@utsav72640)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/get_data-function-is-not-working-when-your-plugin-is-install/#post-16864390)
 * i am facing this issue with your filter,
 * // return our custom order number for display
 * add_filter( ‘woocommerce_order_number’, array( $this, ‘get_order_number’ ), 10,
   2 );
    -  This reply was modified 2 years, 11 months ago by [Utsav tilava](https://wordpress.org/support/users/utsav72640/).
 *  Plugin Support [Zach](https://wordpress.org/support/users/zachskyverge/)
 * (@zachskyverge)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/get_data-function-is-not-working-when-your-plugin-is-install/#post-16872799)
 * Hello there [@utsav72640](https://wordpress.org/support/users/utsav72640/) ,
 * Thank you for reaching out about our plugin, Sequential Order Numbers! I’m happy
   to assist you with this. 🙂
 * Code customization isn’t covered under our support policy. As such, it isn’t 
   something we can assist with directly. That said, we definitely don’t want our
   plugin breaking normal/core functionality. Do I have it correct that you are 
   saying the function get_data() is not functioning correctly when Sequential Order
   Numbers is active?
   It looks like the fatal error you noted in your response only
   has part of the full error stack trace. Are you able to provide the full error
   for me to review?
 * Best,
 *  Thread Starter [Utsav tilava](https://wordpress.org/support/users/utsav72640/)
 * (@utsav72640)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/get_data-function-is-not-working-when-your-plugin-is-install/#post-16882485)
 * Hello [@zachskyverge](https://wordpress.org/support/users/zachskyverge/)
 * Thanks for the update.
 * Unfortunately, I have already resolved the conflict issue in my code, so there
   is no need to discuss this topic further. Therefore, I will close the tickets.
 *  Plugin Support [jessicaskyverge](https://wordpress.org/support/users/jessicaskyverge/)
 * (@jessicaskyverge)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/get_data-function-is-not-working-when-your-plugin-is-install/#post-16887312)
 * Hey [@utsav72640](https://wordpress.org/support/users/utsav72640/), 
   ​Thanks 
   so much for the follow-up! I’ll go ahead and close the conversation for now; 
   however, if you need additional assistance with Sequential Order Numbers for 
   WooCommerce, please feel free to open a new ticket. Thank you, Jessica

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

The topic ‘[NSFW] get_data() function is not working when your plugin is install’
is closed to new replies.

 * ![](https://ps.w.org/woocommerce-sequential-order-numbers/assets/icon-256x256.
   png?rev=3472701)
 * [Sequential Order Numbers for WooCommerce](https://wordpress.org/plugins/woocommerce-sequential-order-numbers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-sequential-order-numbers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-sequential-order-numbers/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-sequential-order-numbers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-sequential-order-numbers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-sequential-order-numbers/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [jessicaskyverge](https://wordpress.org/support/users/jessicaskyverge/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/get_data-function-is-not-working-when-your-plugin-is-install/#post-16887312)
 * Status: resolved