Custom Coded Plugin – File Permission Changed When Uploaded via Plugin Dashboard
-
I’m trying to work with a simple plugin that I’ve coded myself.
It works when I upload it via the WP Plugin Dashboard. But, once I do this, I’m unable to edit the file when I open it via FTP (I get an “open for write: permission denied error”).
However, if I upload the file via FTP into the plugins folder, I am able to edit it. This leads me to believe that uploading the file via the WP Plugin Dashboard is changing the file permission (I’m unable to change it via FTP though my host claims I have full permissions).
I haven’t been able to figure out how to activate the plugin once uploaded via FTP …I did try the script in my functions.php file:
function activate_plugin_wc() { $active_plugins = get_option( 'active_plugins' ); array_push($active_plugins, 'Software_Request_Form/software_request_form.php'); /* Here just replace plugin directory and plugin file*/ update_option( 'active_plugins', $active_plugins ); } add_action( 'init', 'activate_plugin_wc' );If anyone has insight into this issue it would be much appreciated.
Thanks so much!
The topic ‘Custom Coded Plugin – File Permission Changed When Uploaded via Plugin Dashboard’ is closed to new replies.