Created
September 15, 2022 15:43
-
-
Save cliffordp/37cca6c428d946211dcc9a4127853b33 to your computer and use it in GitHub Desktop.
Hide Genesis Blocks Pro License 'missing' Notification on Admin Screens
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 | |
/** | |
* 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