Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
add_filter( 'fg_entryautomation_ftp_connection_params', function( $params, $protocol ) {
// If this is not an SFTP connection, return.
if ( $protocol !== 'sftp' ) {
return $params;
}
// Add private key to connection params.
$params['privateKey'] = 'PRIVATE KEY GOES HERE';
return $params;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment