The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
315 views

How do you use unzip_file() successfully?

I have been trying to use the unzip_file() function. It says "undefined" so I looked into it, and the WP_Filesystem() must be called and set up. So easy, right? require_once(ABSPATH ...
0
votes
1answer
92 views

How to include form for WP_Filesystem()?

I've used a bit of code to try and write a dynamic.css file to a theme folder and it works fine. BUT, it doesn't work on certain shared hosting situations so the request_filesystem_credentials() ...
0
votes
1answer
365 views

Call to a member function put_contents() on a non-object

I have a plugin and I am creating a css file in wp_content. I used this: $this->content_dir = WP_CONTENT_DIR . "/some_folder"; $path = $this->content_dir . 'options.css'; $css='some string'; ...
0
votes
0answers
16 views

version control for wordpress? (wordpress folder and database at same time)

I am familiar with version control to some extent. I have been using git and github for school purposes. Now when I use wordpress it makes sense that I can use git when developing on my local ...
0
votes
0answers
20 views

What's wrong with wp_filesystem delete()?

I noticed something odd recently, the wp_filesystem delete() doesn't work in many cases, and surprisingly, wp_delete_attachment actually doesn't even use wp_filesystem, but uses unlink. What is the ...
0
votes
0answers
36 views

Deleting files and directories with theme activation hook

Has anyone got some insight or good resources for a function to delete the standard plugins and themes upon activation of a custom theme? There does not seem to be a whole lot of info on the topic and ...
0
votes
0answers
72 views

how to create or rewrite files in wordpress plugin folder

i'm developing my own plugin. in that i used a simple php file to generate contact vcards in the plugin folder. for this i used fopen & fwrite. but the file is not creating in the plugin folder. ...
0
votes
0answers
29 views

Page Not Found when file does exist

We are having an issue where although files are listed in File Manager they will not pull up when we link to them. We are on the current version of WordPress and all plug-ins. Here is a link to a ...
0
votes
0answers
72 views

How does WordPress access theme and plugin files through its editor?

I love that WordPress enables you to edit files in the WP back end, but I want to know how it works. How is WordPress able to access and allow you to edit files that are on a server like that? Please ...