Skip to content

Uploads media attachments to a remote server and removes them locally.

Notifications You must be signed in to change notification settings

bogdanarizancu/wp-sftp-media-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The plugin copies uploaded media attachments to a remote SFTP connection, removes them locally and updates the uploads image URL option to the new CDN link.

Configuration is set in wp-config.php, for example:

// the SFTP server hostname
define ('WP_SFTP_HOST', 'ip or hostname ftp/hosting');
// the SFTP server port (of type int), default is 22
define ('WP_SFTP_PORT', '21');
// SFTP connection user 
define ('WP_SFTP_USER', '');
// SFTP connection password 
define ('WP_SFTP_PASSWORD', '');
// Domain or subdomain to the root of the destination uploads folder
define ('WP_SFTP_CDN_URL', 'subdomain.domain.com');
// Location path for the destionation uploads folder
define ('WP_SFTP_CDN_PATH', '/');

About

Uploads media attachments to a remote server and removes them locally.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages