简体   繁体   中英

how do I install a plugin in wordpress without admin access

Is it possible to install a plugin in Wordpress even I haven't admin access. This question has been raised in the interview. I responded as No because a CMS can't provide space for security beach. I am curious to know that is it really possible?

You might be able to if you have access to the DB, or/and if you have write access to the filesystem (through FTP for example). But not through the web interface.

If you had FTP access you could use the activate_plugin() function. There's very little information out there about this function but it looks fairly simple.

Consider using a function like plugin_basename() to get the path you need. http://codex.wordpress.org/Function_Reference/plugin_basename

activate_plugin( '/path/to/plugin/file' );

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM