Skip to content

Magenaut

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

plugins

How can I make it so the Add New Post page has Visibility set to Private by default?

August 4, 2022August 3, 2022 by Magenaut

I’m trying to create a plugin that alters the Add New Post page so the Visibility field says “Private” by default:

Categories Q&A, Wordpress Tags plugin-development, plugins, posts, private, publish Leave a comment

Post source link plugin – small modification

August 4, 2022August 3, 2022 by Magenaut

I’m using a little plugin that allows me to add source link to every article. I found the code in this thread: Article source link for posts

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

Deactivate plugin for a specific user group

August 3, 2022August 2, 2022 by Magenaut

I would like to deactivate a plugin for a specific user. I’m using the following code inside a the wp-content/plugin-mu plugin file:

Categories Q&A, Wordpress Tags actions, plugins, user-roles Leave a comment

Hook if somebody saves plugin options?

August 3, 2022August 2, 2022 by Magenaut

I wrote a plugin that has various options and in case the user saves this options a CSS file will be generated. My intention is that the CSS is only created when the options are saved and not when somebody visits the page and the CSS will be created every single time.

Categories Q&A, Wordpress Tags plugins, settings-api Leave a comment

Adding a Variable Product in WooCommerce Programatically

August 3, 2022August 2, 2022 by Magenaut

How do I make it a variable product and add variations? Are variations handled like attributes?

Categories Q&A, Wordpress Tags plugins Leave a comment

Can Not Redirect from Plugin-Registered Admin Page

August 3, 2022August 2, 2022 by Magenaut

I am doing the following in my plugin:

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

Adding New Role

August 3, 2022August 2, 2022 by Magenaut

I have add new role in functions.php file by this code:

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

What is difference between get_bloginfo(‘url’) and get_site_url()?

August 3, 2022August 2, 2022 by Magenaut

I am developing a plugin.

Categories Q&A, Wordpress Tags bloginfo, plugin-development, plugins, site-url Leave a comment

How to add terms to a post depending on its title?

August 3, 2022August 2, 2022 by Magenaut

I want to add all posts with keyword “Dog Training” in the post title to a specific category.

Categories Q&A, Wordpress Tags plugins, taxonomy, title Leave a comment

Getting Path To Uploaded Attachment Image After Upload

August 3, 2022August 2, 2022 by Magenaut

After you have uploaded an attachment in WordPress using the media upload screen, is there a hook or filter I can run after the image has been uploaded where I can get the path to the uploaded image so I can analyse it?

Categories Q&A, Wordpress Tags attachments, plugin-development, plugins Leave a comment
Older posts
Newer posts
← Previous Page1 … Page19 Page20 Page21 … Page33 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