How to use copy() function and paste file in /wp-content/themes directory

So I found the solution:

copy("http://localhost/medium/theme.zip", get_theme_root() . "/themenew.zip");

Leave a Comment

error code: 523