This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Custom Product Type Example | |
* Description: Custom Product Type Example | |
* Version: 0.1.0 | |
* Requires at least: 6.2 | |
* WC requires at least: 8.7 | |
* Requires PHP: 7.4 | |
* Author: The WordPress Contributors | |
* License: GPL-3.0+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function ( blocks, element, blockEditor ) { | |
var el = element.createElement; | |
blocks.registerBlockType( 'gutenberg-examples/content', { | |
title: 'Test', | |
edit: function () { | |
element.useEffect(() => { | |
console.log('rendered content'); | |
return () => { | |
console.log('removed content'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"slug": "external_wp_admin_link", | |
"type": "info", | |
"status": "unactioned", | |
"is_snoozable": 0, | |
"source": "gist.github.com", | |
"locales": [ | |
{ | |
"locale": "en_US", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"slug":"payment-suggestions-woocommerce-payments","product":"woocommerce-payments","title":"WooCommerce Payments","button-text":"Get started","icon":"http:\/\/woocommerce.test\/wp-content\/plugins\/wccom-plugins\/marketplace-suggestions\/icons\/woocommerce.svg","recommended":true,"copy":"Try the new way to get paid. Securely accept credit and debit cards on your site. Manage transactions without leaving your WordPress dashboard. Only with WooCommerce Payments.","setup-link":"\/wp-admin\/admin.php?page=wc-settings&tab=checkout§ion=woocommerce_payments"},{"slug":"payment-suggestions-stripe-payments","product":"woocommerce-gateway-stripe","title":"Stripe Payments","button-text":"Get started","icon":"http:\/\/woocommerce.test\/wp-content\/plugins\/wccom-plugins\/marketplace-suggestions\/icons\/stripe.svg","copy":"Stripe works by adding payment fields on the checkout and then sending the details to Stripe for verification.","setup-link":"\/wp-admin\/admin.php?page=wc-settings&tab=checkout§ion=stripe"},{" |