Title: Add default Content
Last modified: November 17, 2023

---

# Add default Content

 *  Resolved [S](https://wordpress.org/support/users/dedicatedcloud/)
 * (@dedicatedcloud)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/add-default-content-2/)
 * Hi
 * Is it possible to add default content to the Woocommerce product description 
   editor?
 * Thanks in advanced

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

 *  [Tamrat A. (woo-hc)](https://wordpress.org/support/users/bisratlearn/)
 * (@bisratlearn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/add-default-content-2/#post-17210657)
 * Hi [@dedicatedcloud](https://wordpress.org/support/users/dedicatedcloud/),
 * > Is it possible to add default content to the Woocommerce product description
   > editor?
 * From what I understand, you’re asking if there’s a way to automatically add default
   content to the product description editor in WooCommerce, correct?
 * While WooCommerce doesn’t have a built-in feature for this, there are a couple
   of solutions that you might find helpful.
 * One approach is to create a ‘default’ product and set it as a draft. This product
   can have all the default content you wish to use. Whenever you need to add a 
   new product, simply duplicate your ‘default’ draft product and edit the details
   as necessary before publishing.
 * Another method involves using custom code. You can add a filter to the ‘default_content’
   hook in WordPress which will insert your default content whenever a new product
   is created. Here’s an example of how the code might look:
 *     ```wp-block-code
       add_filter( 'default_content', 'custom_editor_content' );
       function custom_editor_content( $content ) {
       global $post_type;
       if( $post_type == 'product' ) {
       $content = 'Your default content goes here...';
       }
       return $content;
       }
       ```
   
 * In this code, replace ‘Your default content goes here…’ with the content you 
   want to be added by default.
 * You should add this code to your child theme’s `**functions.php**` file or via
   a plugin that allows custom functions to be added, like the [**Code Snippets**](https://wordpress.org/plugins/code-snippets/)
   plugin. Please note that it’s not advisable to add custom code directly to your
   parent theme’s `**functions.php**` file. Doing so could lead to the code being
   erased when the theme is updated.
 * 📌 Just a quick reminder: Before you make any changes, we strongly recommend 
   that you create a [**backup**](https://woocommerce.com/document/backup-wordpress-content/)
   of your [**full site and database**](https://wordpress.org/documentation/article/wordpress-backups/).
   This is a crucial step to ensure that in case anything goes wrong, you can easily
   restore your site to its previous, functioning state.
 * I hope this helps! If you need more assistance or have other questions, don’t
   hesitate to ask.
 *  Thread Starter [S](https://wordpress.org/support/users/dedicatedcloud/)
 * (@dedicatedcloud)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/add-default-content-2/#post-17211249)
 * Hi Tamrat
 * I eventually found a solution that worked for me
 *     ```wp-block-code
       add_filter('default_content', 'my_editor_content');
       function my_editor_content($product_editor)
       {
       	$product_editor = "<h1>Write a description here.</h1>";
       	return $product_editor;
       }
       ```
   
 * But thank you for your detailed response
 * Best Wishes
 *  [Tamrat A. (woo-hc)](https://wordpress.org/support/users/bisratlearn/)
 * (@bisratlearn)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/add-default-content-2/#post-17211523)
 * Hi [@dedicatedcloud](https://wordpress.org/support/users/dedicatedcloud/),
 * > I eventually found a solution that worked for me But thank you for your detailed
   > response
 * Thanks for sharing the solution you found. I’m thrilled to know you’ve successfully
   resolved the issue. Your code snippet is sure to be a valuable resource for other
   users encountering the same situation.
 * I’ll go ahead and mark this thread as resolved. However, if you ever have more
   questions or issues in the future, don’t hesitate to kick off a [**new topic**](https://wordpress.org/support/theme/storefront/#new-topic-0).
 * We’d be thrilled if you could spare a few minutes to leave us a review at 👉 
   [](https://wordpress.org/support/plugin/woocommerce/reviews)**[https://wordpress.org/support/plugin/woocommerce/reviews](https://wordpress.org/support/plugin/woocommerce/reviews)**.
 * Cheers!

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

The topic ‘Add default Content’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [product description](https://wordpress.org/support/topic-tag/product-description/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tamrat A. (woo-hc)](https://wordpress.org/support/users/bisratlearn/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/add-default-content-2/#post-17211523)
 * Status: resolved