In a local wordpress installation, when I install a plugin it only offers me installation via FTP

Enter the following code in the wp-config.php file:

add_filter(‘filesystem_method’, create_function(‘$a’, ‘return “direct”;’ ));

define( ‘FS_CHMOD_DIR’, 0755 );

This code deletes WordPress FTP information.

tech