{"id":403382,"date":"2023-10-31T09:25:42","date_gmt":"2023-10-31T09:25:42","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=403382"},"modified":"2023-11-01T05:05:49","modified_gmt":"2023-11-01T05:05:49","slug":"how-to-manage-woocommerce-product-stock-history","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/","title":{"rendered":"How to Manage WooCommerce Product Stock History?"},"content":{"rendered":"\n<p>In this dev blog, we will learn how to manage WooCommerce product stock history which is crucial for keeping track of inventory changes.<\/p>\n\n\n\n<p>Also, helps online store owners to make informed decisions about restocking and sales strategies. Here&#8217;s a step-by-step guide to managing product stock history:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Create a custom plugin or use your theme&#8217;s functions.php file<\/h2>\n\n\n\n<p>You can develop a custom <a href=\"https:\/\/store.webkul.com\/woocommerce-plugins.html\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce plugin<\/a> or edit the code of your theme template files.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\/**\n * Plugin Name: Woocommerce manage product stock history.\n * Description: How to manage product stock history in WooCommerce.\n * Plugin URI: https:\/\/webkul.com\/\n * Version: 1.0.0\n * Author: Webkul\n * Author URI: https:\/\/webkul.com\/\n * Text Domain: webkul\n *\/<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Manage product stock history for simple products<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\">add_action( &#039;woocommerce_product_before_set_stock&#039;, &#039;wkwc_historical_stock_product_parent&#039; );\n\nfunction wkwc_historical_stock_product_parent( $product ) {\n\n\t$stock_history           = get_post_meta( $product-&gt;get_id(), &#039;_stock_history&#039;, true ) ? get_post_meta( $product-&gt;get_id(), &#039;_stock_history&#039;, true ) : array();\n\t$stock_history&#091; time() ] = (int) get_post_meta( $product-&gt;get_id(), &#039;_stock&#039;, true );\n\tupdate_post_meta( $product-&gt;get_id(), &#039;_stock_history&#039;, $stock_history );\n\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. Manage product stock history for variable products<\/h2>\n\n\n\n<pre class=\"EnlighterJSRAW\">add_action( &#039;woocommerce_variation_before_set_stock&#039;, &#039;wkwc_historical_stock_product_parent&#039; );<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4. Add product meta box<\/h2>\n\n\n\n<p>In the code snippet, you added the\u00a0<code>wkwc_display_stock_history()<\/code>\u00a0function to the\u00a0<code><a href=\"https:\/\/developer.wordpress.org\/reference\/hooks\/add_meta_boxes\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">add_meta_boxes<\/a><\/code>\u00a0hook. This function\u2019s purpose should be to add post-meta boxes.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">add_action( &#039;add_meta_boxes&#039;, &#039;wkwc_product_meta_box&#039; );\n\nfunction wkwc_product_meta_box() {\n\n\tadd_meta_box( &#039;stock_history&#039;, &#039;Stock History&#039;, &#039;wkwc_display_stock_history&#039;, &#039;product&#039;, &#039;advanced&#039;, &#039;high&#039; );\n\n}\n\nfunction wkwc_display_stock_history() {\n\n\tglobal $post;\n\t$product = wc_get_product( $post-&gt;ID );\n\n\tif ( $product-&gt;get_type() == &#039;variable&#039; ) {\n\n\t\tforeach ( $product-&gt;get_available_variations() as $key ) {\n\t\t\t$products&#091;] = $key&#091;&#039;variation_id&#039;];\n\t\t}\n\t} else {\n\n\t\t$products&#091;] = $post-&gt;ID;\n\n\t}\n\n\tforeach ( $products as $product_id ) {\n\n\t\t$product              = wc_get_product( $product_id );\n\t\t$product_stock_status = get_post_meta( $product_id, &#039;_stock_status&#039;, true );\n\t\techo &#039;&lt;h3&gt;&#039; . $product-&gt;get_name() . &#039;&lt;\/h3&gt;&#039;;\n\t\t$stock_history = get_post_meta( $product_id, &#039;_stock_history&#039;, true );\n\n\t\tif ( $stock_history ) {\n\n\t\t\tforeach ( $stock_history as $timestamp =&gt; $stockvalue ) {\n\n\t\t\t\tif ( ! $stockvalue ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\techo &#039;&lt;p&gt;&#039; . gmdate( DATE_COOKIE, $timestamp ) . &#039;: &lt;b&gt;&#039; . $stockvalue . &#039;&lt;\/b&gt;&lt;\/p&gt;&#039;;\n\n\t\t\t}\n\t\t};\n\t\t$stock_quantity = ! empty( $product-&gt;get_stock_quantity() ) ? $product-&gt;get_stock_quantity() : $product_stock_status;\n\t\techo &#039;&lt;p&gt;Current Stock: &lt;b&gt;&#039; . $stock_quantity . &#039;&lt;\/b&gt;&lt;\/p&gt;&#039;;\n\t}\n\n}<\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"616\" data-id=\"403426\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-1200x616.png\" alt=\"how-to-manage-product-stock-history-in-woocommerce-1\" class=\"wp-image-403426\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-1200x616.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-300x154.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-250x128.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-768x394.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1.png 1291w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"615\" data-id=\"403427\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce2-1200x615.png\" alt=\"how-to-manage-product-stock-history-in-woocommerce2\" class=\"wp-image-403427\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce2-1200x615.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce2-300x154.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce2-250x128.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce2-768x394.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce2.png 1293w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Support<\/h2>\n\n\n\n<p>Thank you for reading this dev article to manage product stock history in WooCommerce, for any technical assistance, please reach us by email at\u00a0support@webkul.com<\/p>\n\n\n\n<p>Also, you may <a href=\"https:\/\/webkul.com\/hire-woocommerce-developers\/\" target=\"_blank\" rel=\"noreferrer noopener\">Hire WooCommerce Developers<\/a> to work on your projects.<\/p>\n\n\n\n<p>Have a great day ahead! See you in the next post. Keep reading \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this dev blog, we will learn how to manage WooCommerce product stock history which is crucial for keeping track of inventory changes. Also, helps online store owners to make informed decisions about restocking and sales strategies. Here&#8217;s a step-by-step guide to managing product stock history: 1. Create a custom plugin or use your theme&#8217;s <a href=\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":504,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1773],"tags":[],"class_list":["post-403382","post","type-post","status-publish","format-standard","hentry","category-woocommerce"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WooCommerce Product Stock History Management - Dev Docs<\/title>\n<meta name=\"description\" content=\"Learn how to manage WooCommerce product stock history to keep a check on managing inventory changes and make informed decisions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WooCommerce Product Stock History Management - Dev Docs\" \/>\n<meta property=\"og:description\" content=\"Learn how to manage WooCommerce product stock history to keep a check on managing inventory changes and make informed decisions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-31T09:25:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-01T05:05:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-1200x616.png\" \/>\n<meta name=\"author\" content=\"Sani Kumar Pandey\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sani Kumar Pandey\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/\"},\"author\":{\"name\":\"Sani Kumar Pandey\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f9d27035e753438525c6bd1883d38bb\"},\"headline\":\"How to Manage WooCommerce Product Stock History?\",\"datePublished\":\"2023-10-31T09:25:42+00:00\",\"dateModified\":\"2023-11-01T05:05:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/\"},\"wordCount\":172,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-1200x616.png\",\"articleSection\":[\"WooCommerce\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/\",\"name\":\"WooCommerce Product Stock History Management - Dev Docs\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-1200x616.png\",\"datePublished\":\"2023-10-31T09:25:42+00:00\",\"dateModified\":\"2023-11-01T05:05:49+00:00\",\"description\":\"Learn how to manage WooCommerce product stock history to keep a check on managing inventory changes and make informed decisions.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1.png\",\"width\":1291,\"height\":663,\"caption\":\"how-to-manage-product-stock-history-in-woocommerce-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Manage WooCommerce Product Stock History?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f9d27035e753438525c6bd1883d38bb\",\"name\":\"Sani Kumar Pandey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/64247189d8335f5422a695ad0be257135e6141aaf069f27a205cdbbf90555797?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/64247189d8335f5422a695ad0be257135e6141aaf069f27a205cdbbf90555797?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sani Kumar Pandey\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/sanikrpandey-wp248\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WooCommerce Product Stock History Management - Dev Docs","description":"Learn how to manage WooCommerce product stock history to keep a check on managing inventory changes and make informed decisions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/","og_locale":"en_US","og_type":"article","og_title":"WooCommerce Product Stock History Management - Dev Docs","og_description":"Learn how to manage WooCommerce product stock history to keep a check on managing inventory changes and make informed decisions.","og_url":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-10-31T09:25:42+00:00","article_modified_time":"2023-11-01T05:05:49+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-1200x616.png","type":"","width":"","height":""}],"author":"Sani Kumar Pandey","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sani Kumar Pandey","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/"},"author":{"name":"Sani Kumar Pandey","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f9d27035e753438525c6bd1883d38bb"},"headline":"How to Manage WooCommerce Product Stock History?","datePublished":"2023-10-31T09:25:42+00:00","dateModified":"2023-11-01T05:05:49+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/"},"wordCount":172,"commentCount":2,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-1200x616.png","articleSection":["WooCommerce"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/","url":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/","name":"WooCommerce Product Stock History Management - Dev Docs","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1-1200x616.png","datePublished":"2023-10-31T09:25:42+00:00","dateModified":"2023-11-01T05:05:49+00:00","description":"Learn how to manage WooCommerce product stock history to keep a check on managing inventory changes and make informed decisions.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/10\/how-to-manage-product-stock-history-in-woocommerce-1.png","width":1291,"height":663,"caption":"how-to-manage-product-stock-history-in-woocommerce-1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-manage-woocommerce-product-stock-history\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Manage WooCommerce Product Stock History?"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5f9d27035e753438525c6bd1883d38bb","name":"Sani Kumar Pandey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/64247189d8335f5422a695ad0be257135e6141aaf069f27a205cdbbf90555797?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/64247189d8335f5422a695ad0be257135e6141aaf069f27a205cdbbf90555797?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sani Kumar Pandey"},"url":"https:\/\/webkul.com\/blog\/author\/sanikrpandey-wp248\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/403382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/504"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=403382"}],"version-history":[{"count":25,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/403382\/revisions"}],"predecessor-version":[{"id":408658,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/403382\/revisions\/408658"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=403382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=403382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=403382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}