Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example use of filter to disable the Gutenberg block of Direct Stripe
<?php
/**
* Plugin Name: Disable Direct Stripe Gutenberg Block
* Description: Disable Direct Stripe Gutenberg Block
* Version: 1.0.0
* Author: Nicolas Figueira
* Author URI: https://newo.me
*
* This can be loaded as a plugin -> Download ZIP and from the WordPress adin go to Plugins -> Add Plugin and Click the Upload Plugin button to upload this zip and activate the plugin
*
* An alternative is to use line 13 within the functions.php file of a (child-)theme.
*/
add_filter( 'direct_stripe_should_load_gutenberg_block', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.