The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
372 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
107 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
501 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
17 views

How to make READ ONLY on the FILE System?

Let's say the WP site is under attack. Then we want to prevent any FILE WRITINGS, including: Uploading of the New Files Any way of WRITING the new files into file system So that the System is very ...
0
votes
0answers
9 views

file_get_contents() alternate for inline js

I'm trying to get to 100% score for page speed, in efforts to reach that I'm trying to inline small js files. My js files are all process in and minified as part of a gulp workflow. Prior to looking ...
0
votes
0answers
33 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
27 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
38 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
89 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
30 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
76 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 ...