Skip to content

Commit da1b11c

Browse files
committed
Removed filters.
1 parent 4af2e08 commit da1b11c

File tree

2 files changed

+1
-35
lines changed

2 files changed

+1
-35
lines changed

plugins/wpgraphql-logging/docs/reference/admin.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -232,21 +232,6 @@ add_filter( 'wpgraphql_logging_filter_redirect_url', function( $redirect_url, $f
232232
}, 10, 2 );
233233
```
234234

235-
#### Filter: `wpgraphql_logging_list_template`
236-
Filters the template path for the logs list.
237-
238-
Parameters:
239-
- `$template_path` (string)
240-
241-
Returns: string
242-
243-
Example:
244-
```php
245-
add_filter( 'wpgraphql_logging_list_template', function( $template_path ) {
246-
return plugin_dir_path( __FILE__ ) . 'templates/custom-list.php';
247-
});
248-
```
249-
250235
#### Filter: `wpgraphql_logging_view_template`
251236
Filters the template path for the single log view.
252237

@@ -338,22 +323,6 @@ add_filter( 'wpgraphql_logging_logs_table_where_clauses', function( $where, $req
338323
return $where;
339324
}, 10, 2 );
340325
```
341-
342-
#### Filter: `wpgraphql_logging_filters_template`
343-
Filters the template path for the filters UI.
344-
345-
Parameters:
346-
- `$template_path` (string)
347-
348-
Returns: string
349-
350-
Example:
351-
```php
352-
add_filter( 'wpgraphql_logging_filters_template', function( $template_path ) {
353-
return plugin_dir_path( __FILE__ ) . 'templates/custom-filters.php';
354-
});
355-
```
356-
357326
---
358327

359328
### Class: `View\Download\DownloadLogService`

plugins/wpgraphql-logging/src/Admin/ViewLogsPage.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,7 @@ protected function get_post_value(string $key): ?string {
245245
*/
246246
protected function render_list_page(): void {
247247
$list_table = new ListTable( $this->get_log_service() ); // @phpcs:ignore SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable
248-
$list_template = apply_filters(
249-
'wpgraphql_logging_list_template',
250-
__DIR__ . '/View/Templates/WPGraphQLLoggerList.php'
251-
);
248+
$list_template = __DIR__ . '/View/Templates/WPGraphQLLoggerList.php';
252249
require_once $list_template; // @phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingVariable
253250
}
254251

0 commit comments

Comments
 (0)