Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Created September 15, 2022 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffordp/37cca6c428d946211dcc9a4127853b33 to your computer and use it in GitHub Desktop.
Save cliffordp/37cca6c428d946211dcc9a4127853b33 to your computer and use it in GitHub Desktop.
Hide Genesis Blocks Pro License 'missing' Notification on Admin Screens
<?php
/**
* Hide Genesis Blocks Pro admin notice about missing license key. Only makes sense if you know you didn't and won't enter one.
*
* StudioPress is dumb because they'll give give lifetime account holders access to the .zip but not a license key, making it an unnecessary headache to maintain, ugh, sucky.
* So here's a snippet to annoy you a little less by not seeing the Genesis Blocks Pro License 'missing' Notification on Admin Screens.
* You still need to manually update until StudioPress stops punching us in the face with this nonsense.
*
* @link https://gist.github.com/cliffordp/37cca6c428d946211dcc9a4127853b33 This snippet.
* @link https://developer.wpengine.com/genesis-blocks/changelog/ Genesis Blocks Pro's changelog to watch.
*/
add_filter( 'option_genesis_page_builder_product_info_api_error', function( $value ){
if ( 'no-key' === $value ) {
return '';
}
return $value;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment