Skip to content

Instantly share code, notes, and snippets.

@ivandoric
Last active November 15, 2017 06:36
Show Gist options
  • Save ivandoric/11251545 to your computer and use it in GitHub Desktop.
Save ivandoric/11251545 to your computer and use it in GitHub Desktop.
wordpress: plugin installation on more protected servers
//Add at the end of wp-config.php file
if(is_admin()) {
add_filter('filesystem_method', create_function('$a', 'return "direct";' ));
define( 'FS_CHMOD_DIR', 0751 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment