fg_entryautomation_ftp_connection_params
Description
This filter is allows you to change the parameters used to connect to a FTP server.
Usage
add_filter( 'fg_entryautomation_ftp_connection_params', 'your_function_name', 10, 2 );
Parameters
$params array
Connection parameters.array( 'host' => 'example.com', 'port' => 22, 'username' => 'user', 'password' => 'pass', 'root' => '/', 'passive' => false, 'ssl' => false, 'timeout' => 10, )
- $protocol string
The protocol being connected to; either “ftp” or “sftp”
Example
Passing a private key for authentication
Since
This filter was added in Entry Automation FTP Extension version 1.0.0.