Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save webtoffee-git/73653578b6c8a8245fc7d3e12507d84d to your computer and use it in GitHub Desktop.

Select an option

Save webtoffee-git/73653578b6c8a8245fc7d3e12507d84d to your computer and use it in GitHub Desktop.
Code to add EU withdrawal button API endpoint to Perfmatters rest api exclusion - By WebToffee (WebToffee's EU withdrawal button plugin)
<?php //Do not copy this line of code
add_filter( 'perfmatters_rest_api_exceptions', function( $exceptions ) {
$exceptions[] = 'wbte-ewb';
return $exceptions;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment