Skip to content

Magenaut

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

plugin-development

Unit tests – Dealing with dependencies

August 2, 2022August 1, 2022 by Magenaut

This might be seen as a corollary of Testing hooks callback.

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

Add screen options to custom admin pages

August 2, 2022August 1, 2022 by Magenaut

I want to add screen options to my plugin settings page, like the ones that are available in the Dashboard.

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

Unit testing for plugin development

August 2, 2022August 1, 2022 by Magenaut

I need to apply unit testing for one of my plugins. I recently re designed it into classes, so unit testing should be easier to apply now.

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

Is there a way for a plug-in to get it’s own version number?

August 2, 2022August 1, 2022 by Magenaut

Is there an API I can call, inside my plug-in, to determine the plug-in’s version?

Categories Q&A, Wordpress Tags plugin-development 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

Default table collation on plugin activation?

August 1, 2022July 31, 2022 by Magenaut

I’m following this to make my plugin auto-create a table when the plugin is activated, but what happens is that while all the tables (the whole db) are utf8_general_ci, the newly created table is latin1_swedish_ci… Why isn’t it also utf8? I thought it would also be utf8 by default since I have:

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

what’s the meaning of the field wp_capabilities in table wp_usermeta

August 1, 2022July 31, 2022 by Magenaut

I am new to wordpress, in table wp_usermeta I notice that we have a row

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

Is get_option function cached?

August 1, 2022July 31, 2022 by Magenaut

In my plugin, I use the following code to retrieve an option from the database:

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

Enqueue script only when shortcode is used, with WP Plugin Boilerplate

August 1, 2022July 31, 2022 by Magenaut

I’m building a plugin using the WordPress Plugin Boilerplate by DevinVinson.

Categories Q&A, Wordpress Tags plugin-development, shortcode, wp-enqueue-script, wp-register-script Leave a comment

Which hook should be used to add an action containing a redirect?

August 1, 2022July 31, 2022 by Magenaut

I want to build a plugin that grabs certain url params from the query string to build a new query string for the same page. I’m following the excellent the Professional WordPress Plugin Development book, but I’m not sure which hook to use for this action. Here is my action function:

Categories Q&A, Wordpress Tags actions, hooks, init, plugin-development, redirect Leave a comment
Older posts
Newer posts
← Previous Page1 … Page28 Page29 Page30 Page31 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