Skip to content

Instantly share code, notes, and snippets.

View NaveenKharwar's full-sized avatar
☀️
committing changes since 1999.

Naveen Kharwar NaveenKharwar

☀️
committing changes since 1999.
View GitHub Profile
@NaveenKharwar
NaveenKharwar / Install update WordPress puglins directly.md
Created April 10, 2020 10:14 — forked from dianjuar/Install update WordPress puglins directly.md
Install update WordPress plugins without providing ftp access

Install WordPress plugins directly (without FTP)

Put this on your wp-config.php

/* That's all, stop editing! Happy blogging. */
define('FS_METHOD', 'direct');
### FOR UBUNTU
### PHPCS
composer global require "squizlabs/php_codesniffer=*"
# Add to your .bash_profile
export PATH=$PATH:~/.composer/vendor/bin
#### WordPress Coding Standards
composer global require "wp-coding-standards/wpcs"