1. Go to this page and download the library: Download automattic/jetpack-admin-ui library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
add_filter(
'jetpack_admin_menu_visibility',
function ( $items ) {
// Keep an entry point for a product this platform sells but the site hasn't activated.
$items['jetpack-search'] = Admin_Menu::VISIBILITY_VISIBLE;
// Drop a product this platform doesn't offer.
$items['jetpack-videopress'] = Admin_Menu::VISIBILITY_HIDDEN;
return $items;
}
);