Skip to content

Magenaut

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

Q&A

How do I delete all comments from a specific old blog post?

August 2, 2022August 1, 2022 by Magenaut

I’m cleaning up an old, controversial blog entry and I need to remove all the comments from the post.

Categories Q&A, Wordpress Tags comments Leave a comment

Filter username field on registration for profanity and unwanted words

August 2, 2022August 1, 2022 by Magenaut

How do I add a filter to the username field to stop new users from registering using unwanted words such as administrator or general profanity?

Categories Q&A, Wordpress Tags filters, user-registration, username Leave a comment

Is there a hook for when you switch themes?

August 2, 2022August 1, 2022 by Magenaut

I created a plugin but I just came across a bug that I don’t really know how to solve.

Categories Q&A, Wordpress Tags plugin-development Leave a comment

Delete tables from database when deleting plugin

August 2, 2022August 1, 2022 by Magenaut

I created a plugin and want to add a function to delete my tables from the database when a user deletes my plugin. I created a function that deletes tables from the DB when a user deactivates my plugin, but I don’t want that. Here is the code:

Categories Q&A, Wordpress Tags customization, database, deactivated-plugin, plugins Leave a comment

Woocommerce -How to set product regular price default

August 2, 2022August 1, 2022 by Magenaut

I am using woocommerce at work for equipment requests, therefore all products I will create will need to be £0. Is it possible to set a default value of 0 for the regular price field on the add product form?

Categories Q&A, Wordpress Tags php, plugins Leave a comment

Why is home (a lot) slower than other pages?

August 2, 2022August 1, 2022 by Magenaut

I’m trying to tune a wordpress website which suffers slow loading times, and I found out that the home page seems to take a lot more time to load. It’s not due to content because I’m just considering the time it takes for the base request to end (viewable via firebug in firefox).

Categories Q&A, Wordpress Tags optimization, performance Leave a comment

Why does wp_enqueue_script ignore my ‘wp_head’ hook?

August 2, 2022August 1, 2022 by Magenaut

I would like css_head_scripts and js_head_scripts to be appended to wp-head

but WordPress completely ignores it? Am I missing something?

Categories Q&A, Wordpress Tags hooks, wp-enqueue-script, wp-enqueue-style, wp-head Leave a comment

WordPress URLs without posts

August 2, 2022August 1, 2022 by Magenaut

We are working on larger system, which is based on WordPress, but WordPress is used only for “static” content, the main part of the system should be consuming the external API and displaying the data.

Categories Q&A, Wordpress Tags url-rewriting Leave a comment

call shortcode in javascript

August 2, 2022August 1, 2022 by Magenaut

I want to display a shortcode through jquery after the DOM is loaded:

Categories Q&A, Wordpress Tags ajax, jquery, shortcode Leave a comment

Settings API vs Theme Customizer

August 2, 2022August 1, 2022 by Magenaut

When would it be appropriate to use the settings API, and when would it be better to use the theme customizer?

Categories Q&A, Wordpress Tags settings-api, theme-customizer Leave a comment
Older posts
Newer posts
← Previous Page1 … Page2,532 Page2,533 Page2,534 … Page2,571 Next →
  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