/** * Render the settings page for this plugin. * * First handle plugin de/activation and then spawn the view * * @since 1.0.0 */ public function display_plugin_page() { do_action($this->plugins->get_prefix() . '_plugin_activation'); ?> <div class="wrap"> <h2><?php echo esc_html(get_admin_page_title()); ?> </h2> <?php do_action('biont_before_subplugin_list'); ?> <form id="sub_plugins" method="get"> <input type="hidden" name="page" value="<?php echo $_REQUEST['page']; ?> " /> <?php do_action('biont_subplugin_form_fields'); $table = new Biont_SubPlugins_PluginListTable($this->plugins->get_installed_plugins(), $this->plugins->get_prefix(), $this->create_nonce()); $table->prepare_items(); $table->display(); ?> </form> <?php do_action('biont_after_subplugin_list'); ?> </div> <?php }
/** * @param $prefix * * @return Biont_SubPlugins */ function biont_get_subplugin_handler($prefix) { return Biont_SubPlugins::get_instance($prefix); }