Changeset 3833419
- Timestamp:
- 11/29/2026 05:22:09 PM (less than one hour ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
apbk-affiliate-product-blocks/assets/blueprints/blueprint.json
r3833408 r3833419 9 9 ] 10 10 }, 11 "landingPage": "/ wp-admin/post.php?post=1&action=edit",11 "landingPage": "/?p=1", 12 12 "preferredVersions": { 13 13 "php": "8.2", … … 31 31 { 32 32 "step": "runPHP", 33 "code": "<?php require '/wordpress/wp-load.php';\n $content = <<<'APBK'\n<!-- wp:paragraph --><p>We tested the gadgets we pack for every trip. Here is the one we would buy first.</p><!-- /wp:paragraph -->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/product-card {\"align\":\"wide\",\"badge\":\"Best value\",\"manual\":{\"title\":\"20,000 mAh Power Bank\",\"brand\":\"\",\"price\":\"39.99\",\"listPrice\":\"49.99\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/power-bank\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-power-bank.png\",\"description\":\"Two USB-C ports, a display that shows the charge left, and enough for four phone charges.\",\"pros\":[\"Charges a phone four times\",\"Light enough for a pocket\"],\"cons\":[\"No wireless charging\"]},\"review\":{\"rating\":4.5,\"author\":\"The editors\",\"body\":\"The one to buy if you want a full day of charging without the weight.\"}} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/product-table {\"align\":\"wide\",\"title\":\"Our favourite travel gadgets\",\"products\":[{\"manual\":{\"title\":\"20,000 mAh Power Bank\",\"price\":\"39.99\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/20000-mah-power-bank\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-power-bank.png\"},\"badge\":\"Best overall\"},{\"manual\":{\"title\":\"Wireless Earbuds\",\"price\":\"59.00\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/wireless-earbuds\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-earbuds.png\"}},{\"manual\":{\"title\":\"Travel Kettle, 0.5 L\",\"price\":\"24.50\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/travel-kettle-0-5-l\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-kettle.png\"}}]} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/comparison {\"align\":\"wide\",\"title\":\"At a glance\",\"products\":[{\"manual\":{\"title\":\"20,000 mAh Power Bank\",\"price\":\"39.99\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/20000-mah-power-bank\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-power-bank.png\"},\"ribbon\":\"Our pick\",\"rating\":4.5},{\"manual\":{\"title\":\"Wireless Earbuds\",\"price\":\"59.00\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/wireless-earbuds\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-earbuds.png\"},\"rating\":4},{\"manual\":{\"title\":\"Travel Kettle, 0.5 L\",\"price\":\"24.50\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/travel-kettle-0-5-l\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-kettle.png\"},\"rating\":4}],\"rows\":[{\"label\":\"Weight\",\"v0\":\"350 g\",\"v1\":\"52 g\",\"v2\":\"480 g\"},{\"label\":\"Charging\",\"v0\":\"USB-C\",\"v1\":\"USB-C, wireless\",\"v2\":\"Mains\"},{\"label\":\"Warranty\",\"v0\":\"2 years\",\"v1\":\"1 year\",\"v2\":\"2 years\"}]} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/pros-cons {\"title\":\"20,000 mAh Power Bank: pros and cons\",\"pros\":[\"Charges a phone four times\",\"Two USB-C ports\",\"Shows the charge left\"],\"cons\":[\"No wireless charging\",\"Takes five hours to refill\"]} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/specifications {\"title\":\"Specifications\",\"rows\":[{\"label\":\"Capacity\",\"value\":\"20,000 mAh\"},{\"label\":\"Ports\",\"value\":\"2 \\u00d7 USB-C, 1 \\u00d7 USB-A\"},{\"label\":\"Output\",\"value\":\"45 W\"},{\"label\":\"Weight\",\"value\":\"350 g\"}]} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/verdict {\"title\":\"Our verdict\",\"review\":{\"rating\":4.5,\"author\":\"The editors\",\"body\":\"The power bank to buy if you want a full day of charging without the weight. Skip it only if your phone charges wirelessly.\"}} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/cta {\"title\":\"Ready to pack?\",\"text\":\"Check today\\u2019s price before your trip.\",\"buttonText\":\"Check price\",\"buttonUrl\":\"https:\\/\\/example.com\\/power-bank\"} /-->\nAPBK;\nwp_update_post( array( 'ID' => 1, 'post_title' => 'The travel gadgets we pack every time', 'post_name' => 'travel-gadgets', 'post_content' => $content) );\nupdate_user_meta( 1, 'wp_persisted_preferences', array( 'core/edit-post' => array( 'welcomeGuide' => false ), 'core' => array( 'welcomeGuide' => false ), '_modified' => gmdate( 'c' ) ) );\n"33 "code": "<?php require '/wordpress/wp-load.php';\nwp_set_current_user( 1 );\nkses_remove_filters();\n$content = <<<'APBK'\n<!-- wp:paragraph --><p>We tested the gadgets we pack for every trip. Here is the one we would buy first.</p><!-- /wp:paragraph -->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/product-card {\"align\":\"wide\",\"badge\":\"Best value\",\"manual\":{\"title\":\"20,000 mAh Power Bank\",\"brand\":\"\",\"price\":\"39.99\",\"listPrice\":\"49.99\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/power-bank\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-power-bank.png\",\"description\":\"Two USB-C ports, a display that shows the charge left, and enough for four phone charges.\",\"pros\":[\"Charges a phone four times\",\"Light enough for a pocket\"],\"cons\":[\"No wireless charging\"]},\"review\":{\"rating\":4.5,\"author\":\"The editors\",\"body\":\"The one to buy if you want a full day of charging without the weight.\"}} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/product-table {\"align\":\"wide\",\"title\":\"Our favourite travel gadgets\",\"products\":[{\"manual\":{\"title\":\"20,000 mAh Power Bank\",\"price\":\"39.99\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/20000-mah-power-bank\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-power-bank.png\"},\"badge\":\"Best overall\"},{\"manual\":{\"title\":\"Wireless Earbuds\",\"price\":\"59.00\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/wireless-earbuds\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-earbuds.png\"}},{\"manual\":{\"title\":\"Travel Kettle, 0.5 L\",\"price\":\"24.50\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/travel-kettle-0-5-l\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-kettle.png\"}}]} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/comparison {\"align\":\"wide\",\"title\":\"At a glance\",\"products\":[{\"manual\":{\"title\":\"20,000 mAh Power Bank\",\"price\":\"39.99\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/20000-mah-power-bank\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-power-bank.png\"},\"ribbon\":\"Our pick\",\"rating\":4.5},{\"manual\":{\"title\":\"Wireless Earbuds\",\"price\":\"59.00\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/wireless-earbuds\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-earbuds.png\"},\"rating\":4},{\"manual\":{\"title\":\"Travel Kettle, 0.5 L\",\"price\":\"24.50\",\"currency\":\"USD\",\"availability\":\"InStock\",\"ctaUrl\":\"https:\\/\\/example.com\\/travel-kettle-0-5-l\",\"imageUrl\":\"https:\\/\\/affiblocks.com\\/wp-content\\/uploads\\/2026\\/10\\/demo-kettle.png\"},\"rating\":4}],\"rows\":[{\"label\":\"Weight\",\"v0\":\"350 g\",\"v1\":\"52 g\",\"v2\":\"480 g\"},{\"label\":\"Charging\",\"v0\":\"USB-C\",\"v1\":\"USB-C, wireless\",\"v2\":\"Mains\"},{\"label\":\"Warranty\",\"v0\":\"2 years\",\"v1\":\"1 year\",\"v2\":\"2 years\"}]} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/pros-cons {\"title\":\"20,000 mAh Power Bank: pros and cons\",\"pros\":[\"Charges a phone four times\",\"Two USB-C ports\",\"Shows the charge left\"],\"cons\":[\"No wireless charging\",\"Takes five hours to refill\"]} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/specifications {\"title\":\"Specifications\",\"rows\":[{\"label\":\"Capacity\",\"value\":\"20,000 mAh\"},{\"label\":\"Ports\",\"value\":\"2 \\u00d7 USB-C, 1 \\u00d7 USB-A\"},{\"label\":\"Output\",\"value\":\"45 W\"},{\"label\":\"Weight\",\"value\":\"350 g\"}]} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/verdict {\"title\":\"Our verdict\",\"review\":{\"rating\":4.5,\"author\":\"The editors\",\"body\":\"The power bank to buy if you want a full day of charging without the weight. Skip it only if your phone charges wirelessly.\"}} /-->\n<!-- wp:spacer {\"height\":\"64px\"} --><div style=\"height:64px\" aria-hidden=\"true\" class=\"wp-block-spacer\"></div><!-- /wp:spacer -->\n<!-- wp:apbk/cta {\"title\":\"Ready to pack?\",\"text\":\"Check today\\u2019s price before your trip.\",\"buttonText\":\"Check price\",\"buttonUrl\":\"https:\\/\\/example.com\\/power-bank\"} /-->\nAPBK;\nwp_update_post( array( 'ID' => 1, 'post_title' => 'The travel gadgets we pack every time', 'post_name' => 'travel-gadgets', 'post_content' => wp_slash( $content ) ) );\nupdate_user_meta( 1, 'wp_persisted_preferences', array( 'core/edit-post' => array( 'welcomeGuide' => false ), 'core' => array( 'welcomeGuide' => false ), '_modified' => gmdate( 'c' ) ) );\n" 34 34 } 35 35 ]
Note:
See TracChangeset
for help on using the changeset viewer.