Skip to content

Magenaut

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

wp-config

Prevent access or auto-delete readme.html, license.txt, wp-config-sample.php

August 3, 2022August 2, 2022 by Magenaut

Just a quick question that might help a tad bit with security. I noticed that the readme.html file has the version number listed. It reappears after each upgrade and so do the licence.txt, and wp-config-sample.php.

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

hook a functions to change wp-config from functions.php

August 3, 2022August 2, 2022 by Magenaut

is there a way to hook / filter or add action that would be printed in the wp-config file? lets say i want to add some simple command like “empty the trash” aka

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

Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)

August 3, 2022August 2, 2022 by Magenaut

I’m developing a site on a server that the client has access to as well and what I’d like to do is show WP_DEBUG only for administrators. Referencing Yoast’s article on a way around this:

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

Is it possible to change the log file location for WP_DEBUG_LOG?

August 2, 2022August 1, 2022 by Magenaut

I use WP_DEBUG_LOG in my development environment and have no issues with debug.log being in the wp-content directory.

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

Changing WP_CONTENT_DIR and WP_CONTENT_URL in wp-config.php does not register?

August 1, 2022July 31, 2022 by Magenaut

I tried to add this to the end of my wp-config.php

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

Turn Off Automatic Trash Deletion?

August 1, 2022July 31, 2022 by Magenaut

I have a client who wants to use the trash feature, but keep items in there indefinitely (I have no idea why, but they insist on it).

Categories Q&A, Wordpress Tags constants, post-status, trash, wp-config Leave a comment

Password in wp-config. Dangerous?

August 1, 2022July 31, 2022 by Magenaut

I don’t know a lot of WordPress yet, and I’m just wondering:

Categories Q&A, Wordpress Tags wp-config Leave a comment
Newer posts
← Previous Page1 Page2
  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