block.json
81 lines
| 1 | { |
| 2 | "name": "woocommerce/handpicked-products", |
| 3 | "title": "Hand-picked Products", |
| 4 | "category": "woocommerce", |
| 5 | "keywords": [ "Handpicked Products", "WooCommerce" ], |
| 6 | "description": "Display a selection of hand-picked products in a grid.", |
| 7 | "supports": { |
| 8 | "align": [ "wide", "full" ], |
| 9 | "html": false |
| 10 | }, |
| 11 | "attributes": { |
| 12 | "align": { |
| 13 | "type": "string" |
| 14 | }, |
| 15 | "columns": { |
| 16 | "type": "number", |
| 17 | "default": 3 |
| 18 | }, |
| 19 | "contentVisibility": { |
| 20 | "type": "object", |
| 21 | "default": { |
| 22 | "image": true, |
| 23 | "title": true, |
| 24 | "price": true, |
| 25 | "rating": true, |
| 26 | "button": true |
| 27 | }, |
| 28 | "properties": { |
| 29 | "image": { |
| 30 | "type": "boolean", |
| 31 | "image": true |
| 32 | }, |
| 33 | "title": { |
| 34 | "type": "boolean", |
| 35 | "title": true |
| 36 | }, |
| 37 | "price": { |
| 38 | "type": "boolean", |
| 39 | "price": true |
| 40 | }, |
| 41 | "rating": { |
| 42 | "type": "boolean", |
| 43 | "rating": true |
| 44 | }, |
| 45 | "button": { |
| 46 | "type": "boolean", |
| 47 | "button": true |
| 48 | } |
| 49 | } |
| 50 | }, |
| 51 | "orderby": { |
| 52 | "type": "string", |
| 53 | "enum": [ |
| 54 | "date", |
| 55 | "popularity", |
| 56 | "price_asc", |
| 57 | "price_desc", |
| 58 | "rating", |
| 59 | "title", |
| 60 | "menu_order" |
| 61 | ], |
| 62 | "default": "date" |
| 63 | }, |
| 64 | "products": { |
| 65 | "type": "array", |
| 66 | "default": [] |
| 67 | }, |
| 68 | "alignButtons": { |
| 69 | "type": "boolean", |
| 70 | "default": false |
| 71 | }, |
| 72 | "isPreview": { |
| 73 | "type": "boolean", |
| 74 | "default": false |
| 75 | } |
| 76 | }, |
| 77 | "textdomain": "woocommerce", |
| 78 | "apiVersion": 2, |
| 79 | "$schema": "https://schemas.wp.org/trunk/block.json" |
| 80 | } |
| 81 |