# beean recipe widget

Integrate beean coffee recipe widgets into WooCommerce product pages.

## Description

beean recipe widget seamlessly integrates beean coffee recipe widgets into your WooCommerce product pages. Perfect for coffee roasters who want to display brewing recipes alongside their products.

## Features

- **Simple Integration** - Add a recipe widget ID in the product editor sidebar
- **Automatic Embedding** - Recipe widgets display automatically on product pages
- **Flexible Display Options** - Use action hook `do_action('beean_recipe')` for custom placement
- **Shortcode Support** - Use `[beean_recipe]` shortcode anywhere on your site
- **Theme Compatible** - Works with popular WordPress themes and page builders like Uncode
- **WooCommerce HPOS Ready** - Fully compatible with High-Performance Order Storage
- **Secure** - Proper nonce verification and input sanitization

## How It Works

1. Install and activate the plugin
2. Edit any WooCommerce product
3. Find the "beean recipe widget ID" field in the sidebar
4. Enter your recipe widget ID (use this ID for testing: `njxnyk3pdqvbd-41`)
5. Save the product
6. The recipe widget will automatically display on the product page

## Display Methods

### Shortcode

Use the `[beean_recipe]` shortcode to embed recipe widgets anywhere on your site:

- `[beean_recipe]` - On product pages, automatically uses the recipe ID from the product meta
- `[beean_recipe id="njxnyk2lg3rk5-24"]` - Display a specific recipe by ID (works on any page)

### Action Hook

For theme customization, use `<?php do_action('beean_recipe'); ?>` in your template files to display the widget in custom locations.

## Requirements

- WordPress 5.0 or higher
- WooCommerce 3.0 or higher
- PHP 7.2 or higher
- A beean recipe widget ID from beean Coffee

## License

GPLv2 or later - https://www.gnu.org/licenses/gpl-2.0.html