| @@ -78,4 +78,14 @@ | ||
| 78 | 78 | __('PhastPress', 'phastpress'), |
| 79 | 79 | phastpress_get_plugin_sdk()->getAdminPanel()->render() |
| 80 | 80 | ); |
| 81 | 81 | } |
| 82 | + | |
| 83 | +add_action('ai1wm_exclude_content_from_export', function ($filters) { | |
| 84 | + if (!is_array($filters)) { | |
| 85 | + return $filters; | |
| 86 | + } | |
| 87 | + foreach (phastpress_get_plugin_sdk()->getCacheRootManager()->getAllCacheRoots() as $dir) { | |
| 88 | + $filters[] = $dir; | |
| 89 | + } | |
| 90 | + return $filters; | |
| 91 | +}); | |