Uploads Path error
-
Hi,
I am facing path issue, I added filter into functions.php but it still shows error.
The path for /uploads files does not exist (function is_dir() returns false). Use filter webpc_dir_path to set the correct path. The current using path is: /wordpress/wp-content/uploads. Please read the plugin FAQ to learn more.
this is the code I have added into function.php file.
add_filter( ‘webpc_dir_path’, function( $path, $directory ) {
switch ($directory) {
case ‘uploads’:
return ‘/wp-content/uploads’;
case ‘webp’:
return ‘/wp-content/uploads-webpc’;
}
return $path;
}, 10, 2 );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Uploads Path error’ is closed to new replies.