<product_get_purchase_note>

The WooCommerce product get purchase note shortcode.


Usage

  1. // assign value 
  2. $product_get_purchase_note = 'dynamic_tag'; 
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$product_get_purchase_note]"); 
  1. // assign value 
  2. $product_get_purchase_note = 'dynamic_tag'; 
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$product_get_purchase_note]"); 
  6. echo $result;  

Defined (4)

The shortcode is defined in the following location(s).

/includes/api/class-wc-rest-products-controller.php  
  1. 'rating_count' => $product->get_rating_count(),  
  2. 'related_ids' => array_map( 'absint', array_values( wc_get_related_products( $product->get_id() ) ) ),  
  3. 'upsell_ids' => array_map( 'absint', $product->get_upsell_ids() ),  
  4. 'cross_sell_ids' => array_map( 'absint', $product->get_cross_sell_ids() ),  
  5. 'parent_id' => $product->get_parent_id(),  
  6. 'purchase_note' => wpautop( do_shortcode( wp_kses_post( $product->get_purchase_note() ) ) ),  
  7. 'categories' => $this->get_taxonomy_terms( $product ),  
  8. 'tags' => $this->get_taxonomy_terms( $product, 'tag' ),  
  9. 'images' => $this->get_images( $product ),  
  10. 'attributes' => $this->get_attributes( $product ),  
  11. 'default_attributes' => $this->get_default_attributes( $product ),  
/includes/api/legacy/v2/class-wc-api-products.php  
  1. 'attributes' => $this->get_attributes( $product ),  
  2. 'downloads' => $this->get_downloads( $product ),  
  3. 'download_limit' => $product->get_download_limit(),  
  4. 'download_expiry' => $product->get_download_expiry(),  
  5. 'download_type' => 'standard',  
  6. 'purchase_note' => wpautop( do_shortcode( wp_kses_post( $product->get_purchase_note() ) ) ),  
  7. 'total_sales' => $product->get_total_sales(),  
  8. 'variations' => array(),  
  9. 'parent' => array(),  
  10. ); 
/includes/api/legacy/v3/class-wc-api-products.php  
  1. 'attributes' => $this->get_attributes( $product ),  
  2. 'downloads' => $this->get_downloads( $product ),  
  3. 'download_limit' => $product->get_download_limit(),  
  4. 'download_expiry' => $product->get_download_expiry(),  
  5. 'download_type' => 'standard',  
  6. 'purchase_note' => wpautop( do_shortcode( wp_kses_post( $product->get_purchase_note() ) ) ),  
  7. 'total_sales' => $product->get_total_sales(),  
  8. 'variations' => array(),  
  9. 'parent' => array(),  
  10. 'grouped_products' => array(),  
  11. 'menu_order' => $this->get_product_menu_order( $product ),  
/includes/api/v1/class-wc-rest-products-controller.php  
  1. 'rating_count' => $product->get_rating_count(),  
  2. 'related_ids' => array_map( 'absint', array_values( wc_get_related_products( $product->get_id() ) ) ),  
  3. 'upsell_ids' => array_map( 'absint', $product->get_upsell_ids() ),  
  4. 'cross_sell_ids' => array_map( 'absint', $product->get_cross_sell_ids() ),  
  5. 'parent_id' => $product->get_parent_id(),  
  6. 'purchase_note' => wpautop( do_shortcode( wp_kses_post( $product->get_purchase_note() ) ) ),  
  7. 'categories' => $this->get_taxonomy_terms( $product ),  
  8. 'tags' => $this->get_taxonomy_terms( $product, 'tag' ),  
  9. 'images' => $this->get_images( $product ),  
  10. 'attributes' => $this->get_attributes( $product ),  
  11. 'default_attributes' => $this->get_default_attributes( $product ),