Skip to content
Snippets Groups Projects

Atomic - 1

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Krzysztof Dyszczyk
    Edited
    post_meta.php 134 B
    $quantity = (int) get_post_meta($product_id, 'stock_quantity', true);
    update_post_meta($product_id, 'stock_quantity', $quantity - 1);
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment