• Resolved Michael

    (@eizzumdm)


    I administer a multisite network for a 501(c)(3) organization. Adding a “Paid Content” block or integrating a payment solution would violate the terms of service for our organization’s website hosting resources.

    Unfortunately, Jetpack makes it easy for site admins to add these monetization blocks to any site in our WordPress network.

    We don’t want to disable Jetpack Blocks completely. I see that Jetpack conveniently provides a filter to disable the AI Assistant:
    add_filter( ‘jetpack_ai_enabled’, ‘__return_false’ );

    Is there a similar filter to disable the Paid Content block or the Payment Buttons block?

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    You can selectively disable some of the Jetpack blocks, like the different payment blocks, like so:

    add_filter(
    	'jetpack_set_available_extensions',
    	function ( $extensions ) {
    		return array_diff(
    			$extensions,
    			array(
    				'premium-content/container',
    				'premium-content',
    				'recurring-payments',
    				'simple-payments',
    				'payments-intro',
    				'payment-buttons',
    			)
    		);
    	},
    	99
    );

    You can add that code snippet to a functionality plugin on your site.

    I hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable monetization features (non-profit site network)’ is closed to new replies.