Excluding node_modules via filter not working anymore
-
For the last couple of months I used the ai1wm_exclude_content_from_export-Filter to exclude my theme’s node_modules from being backuped as following:
add_filter( 'ai1wm_exclude_content_from_export', function ( $exclude_filters ) { $nodeFolder = preg_replace( "/(.*?)themes/", "themes", $this->themeFolder ) . '/node_modules'; $exclude_filters[] = $nodeFolder; return $exclude_filters; } );
But for some reason this not working any more so I have to use the exclude-option in the webinterface, which is a bit tedious.
I’ve already checked the $this->themeFolder, it seems to be correct.
Has anyone a hint what the problem may be?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Excluding node_modules via filter not working anymore’ is closed to new replies.