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 | |
/** | |
* Returns all unique meta key from user meta database | |
* | |
* @param no parameter right now | |
* 2 pieces of attractive WordPress code | |
*/ | |
/** |
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 | |
add_filter( 'all_plugins', function ( $plugins ) { | |
$shouldHide = ! array_key_exists( 'show_all', $_GET ); | |
if ( $shouldHide ) { | |
$hiddenPlugins = [ | |
'woocommerce-checkout-manager/woocommerce-checkout-manager.php', | |
'woocommerce-checkout-manager.php', | |
]; | |
foreach ( $hiddenPlugins as $hiddenPlugin ) { |