Linked Questions

110 votes
2 answers
62k views

Uninstall, Activate, Deactivate a plugin: typical features & how-to

I'm making a WordPress plugin. What are typical things I should include in the uninstall feature? For example, should I delete any tables I created in the install function? Do I clean up my option ...
redconservatory's user avatar
34 votes
7 answers
3k views

What Plugins Demonstrate Great WP Plugin Development? [closed]

I'm going to be tackling my first plugin soon and I'm looking for plugins which you feel are of very high quality, under the hood. Stuff I can use as an example while I design the framework for my ...
32 votes
5 answers
10k views

Is there any plugin development framework

Since I am new to WordPress plugin development I have been examining the internal structure of many plugins. I have found that most of them don't fit any pattern and so understanding how they work can ...
Rohith Raveendran's user avatar
17 votes
3 answers
1k views

Unit testing for plugin development

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. What are some effective strategies to unit test my plugin? I ...
Fernando Briano's user avatar
11 votes
4 answers
1k views

Am I allowed to license my Wordpress theme under the aGPL

I was interested in the recent conversation about whether WordPress themes need to be licenced under the GPL or whether they can be closed source. The video can be reached from matts blog and my ...
Tom's user avatar
  • 449
12 votes
4 answers
3k views

Hooking in to plugins

I'm working on a plugin that would ideally be able to do things when a user does something through a different plugin. I can add custom hooks in those plugins but obviously this wouldn't work well ...
Ryan Elkins's user avatar
6 votes
3 answers
4k views

Creating two database tables via plugin

I'm working on a voting plugin for my site and I want to create 2 tables: one that stores votes and another that stores voter ips. In Codex it suggests to use an if statement to see if the table has ...
at least three characters's user avatar
1 vote
1 answer
25k views

Override plugin with functions.php

add_action('wp_head','add_gpp_gallery'); function add_gpp_gallery() { if( ( is_single() || is_page() ) && ( !is_page_template('page-blog.php') ) ){ remove_shortcode('gallery', '...
Jason's user avatar
  • 691
8 votes
3 answers
7k views

Sample code for validating custom metabox?

I've found very little on this site or in Google searches for examples of validating metabox custom fields. If anyone wants to give examples, here are some cases that would be useful 1) Date entered ...
stvwlf's user avatar
  • 466
5 votes
1 answer
2k views

Tutorials for Unit-Testing in WordPress and for unit-test.svn.wordpress.org?

I'm starting to learn Selenium and PHPUnit and I am interested in implementing what I've learned in my WordPress projects. I've seen http://unit-test.svn.wordpress.org and wonder if there are any ...
justjoe's user avatar
  • 295
4 votes
4 answers
670 views

GPL and plugins

The Plugin developer center says "Your plugin must be GPLv2 Compatible.". But I found that the Topsy plugin is under GPLv3. http://www.gnu.org/licenses/rms-why-gplv3.html states that GPLv2 and GPLv3 ...
User's user avatar
  • 646
5 votes
6 answers
728 views

WordPress Plugin Development from Scratch. How? [closed]

I would like to learn how to create a plugin from scratch, there are tons of tutorials out there on the internet, but they are either premium or not a reliable resource. would like to know which are ...
nicholas's user avatar
5 votes
2 answers
3k views

How to use WP_Error $data argument?

The Call $error = new WP_Error( $code, $message, $data ); The Output Say I added three messages (msg A, msg B, msg C) to the code my_code and with the last message I added "Data" as $data, which ...
kaiser's user avatar
  • 50.8k
3 votes
2 answers
2k views

When does remove_filter not work?

There are reports that remove_filter does not work under some circumstances, and that we should provide alternatives. However, the article does not really make it clear under which circumstances this ...
Jan Fabry's user avatar
  • 30.5k
1 vote
4 answers
580 views

URLs of plugin resources?

I am trying to add in a script and css file for my plugin into the admin header. Is there a function similar to get_bloginfo('url') that I could use to reference the files correctly without having to ...
Odyss3us's user avatar
  • 905

15 30 50 per page