From b5fd728e37aa2a9c7a5f37e8dead0a95117d541b Mon Sep 17 00:00:00 2001 From: yehudah Date: Mon, 25 Nov 2019 09:25:43 +0000 Subject: =?UTF-8?q?phpmailer=20delivery=20improvments=20bug=20fixes=20add?= =?UTF-8?q?=20option=20to=20disable=20notifications=20fix=20Invalid=20?= =?UTF-8?q?=E2=80=9CReply-To=E2=80=9D=20e-mail=20address?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Postman/Extensions/Admin/PostmanAdmin.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Postman/Extensions/Admin/PostmanAdmin.php (limited to 'Postman/Extensions/Admin/PostmanAdmin.php') diff --git a/Postman/Extensions/Admin/PostmanAdmin.php b/Postman/Extensions/Admin/PostmanAdmin.php new file mode 100644 index 0000000..3b61a0a --- /dev/null +++ b/Postman/Extensions/Admin/PostmanAdmin.php @@ -0,0 +1,31 @@ +get_extensions(); + + if ( count( $extensions ) > 0 ) { + add_action('admin_menu', [ $this, 'add_menu' ], 20 ); + } + + } + + public function add_menu() { + add_submenu_page( + PostmanViewController::POSTMAN_MENU_SLUG, + __('Extensions', 'post-smtp'), + __('Extensions', 'post-smtp'), + 'manage_options', + 'post-smtp-extensions', + [ $this, 'render_menu' ] + ); + } + + public function render_menu() { + include_once 'PostmanAdminView.php'; + } +} -- cgit v1.2.3