1. Go to this page and download the library: Download biont/wordpress-subplugins 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/ */
biont / wordpress-subplugins example snippets
/**
* Plugin Name: My Plugin
* Description: A demo plugin that has a cool sub-plugin feature!
* Version: 1.0
* Author: Biont
* Licence: GPLv3
* Text Domain: my-textdomain
* Domain Path: /languages
*/
tem
'page_title' => __( 'Modules of My Plugin', 'my-textdomain' ),
'menu_title' => __( 'RBP-Plugins', 'my-textdomain' ),
);
// Will show up under "Dashboard". See https://codex.wordpress.org/Function_Reference/add_submenu_page
// for more information on where to put admin menu pages.
add_subplugin_support( $sub_plugin_folder, $prefix, $plugin_args );