Skip to content

Commit

Permalink
don't show my plugins & tools if the entitkements are empty
Browse files Browse the repository at this point in the history
  • Loading branch information
ramyakrishnai committed Oct 7, 2024
1 parent 2c9c4db commit 95e2d84
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions includes/Solutions.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,12 @@ public function init_entitilements_apis(): void {
* @return array
*/
public static function add_my_plugins_and_tools_tab( array $tabs ) {
// $hiive = new HiiveConnection();
// $api = new EntitlementsApi( $hiive );
// $entitlements = $api->get_items();
// if ( $entitlements->data->entitlements ) {
$hiive = new HiiveConnection();
$api = new EntitlementsApi( $hiive );
$entitlements = $api->get_items();
if ( $entitlements->data->entitlements ) {
$tabs['nfd_my_plugins_and_tools'] = __( 'My Plugins & Tools', 'wp-module-solutions' );

// }
}

return $tabs;
}
Expand Down

0 comments on commit 95e2d84

Please sign in to comment.