Skip to content

Commit 3474c1c

Browse files
committed
Added clear all button for filters.
1 parent fbe6975 commit 3474c1c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

plugins/wpgraphql-logging/src/Admin/View/Templates/wpgraphql-logger-filters.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,10 @@ class="wpgraphql-logging-datepicker"
4040
</select>
4141

4242
<?php submit_button( __( 'Filter', 'wpgraphql-logging' ), 'secondary', '', false, [ 'style' => 'margin: 0;' ] ); ?>
43+
44+
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpgraphql-logging-view' ) ); ?>"
45+
class="clear-all-button"
46+
style="margin: 0; margin-left: 5px; text-decoration: none;">
47+
<?php esc_html_e( 'Clear All', 'wpgraphql-logging' ); ?>
48+
</a>
4349
</div>

plugins/wpgraphql-logging/src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static function activate(): void {
106106
*/
107107
public static function deactivate(): void {
108108
if ( ! defined( 'WP_GRAPHQL_LOGGING_UNINSTALL_PLUGIN' ) ) {
109-
return;
109+
return;
110110
}
111111
DatabaseEntity::drop_table();
112112
}

0 commit comments

Comments
 (0)