From ebd3b534e83f70672f3a8833f50a0fca894395d9 Mon Sep 17 00:00:00 2001 From: Adam Harms Date: Fri, 13 Jul 2018 14:21:02 -0700 Subject: [PATCH 1/2] Added filter for the tabs array on the tools page for hiding and adding pages --- admin/class-gdpr-admin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/class-gdpr-admin.php b/admin/class-gdpr-admin.php index 2679fac8..62621277 100755 --- a/admin/class-gdpr-admin.php +++ b/admin/class-gdpr-admin.php @@ -325,6 +325,8 @@ public function tools_page_template() { 'audit-log' => esc_html__( 'Audit Log', 'gdpr' ), ); + $tabs = apply_filters( 'gdpr_tools_pages', $tabs); + include plugin_dir_path( __FILE__ ) . 'partials/tools.php'; } From 94cce8518a25a184376b974457aae1be8bbebc1e Mon Sep 17 00:00:00 2001 From: Fernando Claussen Date: Tue, 17 Jul 2018 16:16:37 -0400 Subject: [PATCH 2/2] Renaming filter --- admin/class-gdpr-admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/class-gdpr-admin.php b/admin/class-gdpr-admin.php index eb73c2b1..d25b162d 100755 --- a/admin/class-gdpr-admin.php +++ b/admin/class-gdpr-admin.php @@ -314,8 +314,8 @@ public function tools_page_template() { 'audit-log' => esc_html__( 'Audit Log', 'gdpr' ), ); - $tabs = apply_filters( 'gdpr_tools_pages', $tabs); - + $tabs = apply_filters( 'gdpr_tools_tabs', $tabs ); + include plugin_dir_path( __FILE__ ) . 'partials/tools.php'; }