Title: adrjan's Replies | WordPress.org

---

# adrjan

  [  ](https://wordpress.org/support/users/adrjan/)

 *   [Profile](https://wordpress.org/support/users/adrjan/)
 *   [Topics Started](https://wordpress.org/support/users/adrjan/topics/)
 *   [Replies Created](https://wordpress.org/support/users/adrjan/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/adrjan/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/adrjan/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/adrjan/engagements/)
 *   [Favorites](https://wordpress.org/support/users/adrjan/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Post individual Message to product/ article](https://wordpress.org/support/topic/post-individual-message-to-product-article/)
 *  Thread Starter [adrjan](https://wordpress.org/support/users/adrjan/)
 * (@adrjan)
 * [10 years ago](https://wordpress.org/support/topic/post-individual-message-to-product-article/#post-7380038)
 * Thank you Mike.
 * > product addons extensions which could capture messages
 * Do you have an link for an extension like this?
    Or I must completly write a 
   new script to achieve my goal?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Automatic change product category after sold out](https://wordpress.org/support/topic/automatic-change-product-category-after-sold-out/)
 *  Thread Starter [adrjan](https://wordpress.org/support/users/adrjan/)
 * (@adrjan)
 * [10 years ago](https://wordpress.org/support/topic/automatic-change-product-category-after-sold-out/#post-7357587)
 * Thank you Mike!
    I think I can do it somehow.
 * Greetings Adrjan
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Automatic change product category after sold out](https://wordpress.org/support/topic/automatic-change-product-category-after-sold-out/)
 *  Thread Starter [adrjan](https://wordpress.org/support/users/adrjan/)
 * (@adrjan)
 * [10 years ago](https://wordpress.org/support/topic/automatic-change-product-category-after-sold-out/#post-7357554)
 * Ist there an “do_action”-function for changeing the product category?
    And i 
   put this between the if instruction? For example?
 *     ```
       if ( update_post_meta( $this->id, '_stock_status', $status ) ) {
       			$this->stock_status = $status;
       			do_action( 'woocommerce_product_set_stock_status', $this->id, $status );
       do_action( 'woocommerce_product_category_change',$this->id, my_category);
       		}
       ```
   
 * ?!
 * I would be thankful for any help
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Automatic change product category after sold out](https://wordpress.org/support/topic/automatic-change-product-category-after-sold-out/)
 *  Thread Starter [adrjan](https://wordpress.org/support/users/adrjan/)
 * (@adrjan)
 * [10 years ago](https://wordpress.org/support/topic/automatic-change-product-category-after-sold-out/#post-7357523)
 * Thank you Mike.
    But I’am a very beginner, how exactly I can use the hook? Can
   you give me an example how I must modify the code?
 * Thank you very much again!

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