• Resolved FeliceAntonio

    (@antonio_09)


    Hi to everyone.
    I changed the image directory and moved on a subdomain, and works well.
    But: into the database, in several tables, in some fields, there are again the old folder name images.
    I tried to upload an image from the admin area in a new post and was uploaded into the old folder.
    Should I change all the old name folder into the database with new?
    I don’t want to mess around.
    Thanks.
    I forgot: I changed the URL path in wp-config.php

    • This topic was modified 4 years, 11 months ago by FeliceAntonio. Reason: added text
    • This topic was modified 4 years, 11 months ago by FeliceAntonio. Reason: correction
Viewing 1 replies (of 1 total)
  • Thread Starter FeliceAntonio

    (@antonio_09)

    Well, I found this code here

    add_filter( 'pre_option_upload_path', function( $upload_path ) {
        return '/path/to/static';
    });
    
    add_filter( 'pre_option_upload_url_path', function( $upload_url_path ) {
        return 'http://static.example.org';
    });

    and it seems work well!
    Regards.

Viewing 1 replies (of 1 total)

The topic ‘Where modify database after changed images folder’ is closed to new replies.