kalau kita baru pertama install wordpress biasanya akan muncul popup FTP Login ketika kita install plugins/theme. nah untuk menghilangkan ini kita bisa menambahkan define('FS_METHOD', 'direct');
pada file wp-config.php
//wp-config.php
<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the installation.
* You don't have to use the web site, you can copy this file to "wp-config.php"
* and fill in the values.
*
* This file contains the following configurations:
*
* * Database settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://wordpress.org/documentation/article/editing-wp-config-php/
*
* @package WordPress
*/
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('FS_METHOD', 'direct'); //tambahin disini