Save up to 50% off during Black Friday!

fg_entryautomation_ftp_connection_params

Description

This filter is allows you to change the parameters used to connect to a FTP server.

Usage

PHP
add_filter( 'fg_entryautomation_ftp_connection_params', 'your_function_name', 10, 2 );

Parameters

$params array
Connection parameters.

PHP
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.