Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

wp-filesystem

How can I add a method to create files when in theme-editor.php

August 5, 2022 by Magenaut

This is a concept of my goal I want to be able to create files in the current opened directory by entering the complete file name and and extension in a text field, click create and use the AJAX process to run the file_put_contents() method. I haven’t tried any coding methods as I do not … Read more

Categories Q&A, Wordpress Tags wp-filesystem Leave a comment

Register visits of my pages in wordpresss

August 5, 2022 by Magenaut

I have a shortcode that obtains the name of the person logged into wordpress, I would like that shortcode when the person enters a page where I have my shortcode create a .text file and save their name inside it

Categories Q&A, Wordpress Tags shortcode, users, wp-filesystem Leave a comment

How do you find a file in the media library using the file URL?

August 4, 2022 by Magenaut

We have about 2000 files in our media library and we are working on an audit to organize the files and create a name hierarchy.

Categories Q&A, Wordpress Tags media-library, wp-filesystem Leave a comment

What dependencies should I load and to use the WP_Filesystem?

August 5, 2022August 4, 2022 by Magenaut

I’m building a WordPress theme which has a WP_Filesystem call in it:

Categories Q&A, Wordpress Tags filesystem, wp-dependencies, wp-filesystem Leave a comment

How to replace file_get_contents() with a WordPress Filesystem call

August 5, 2022August 4, 2022 by Magenaut

I’m using the PHP file_get_contents() function to retrieve and echo the contents of an SVG-file.

Categories Q&A, Wordpress Tags filesystem, php, wp-filesystem Leave a comment

Allowing all/different file type uploads

August 2, 2022August 1, 2022 by Magenaut

I’ve looked through a number of previously accepted answers, but none seem to work/apply to the latest versions of WordPress.

Categories Q&A, Wordpress Tags uploads, wp-filesystem Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress