Plugins are tools to extend the functionality of WordPress. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.
7
votes
1answer
100 views
How MUST the directory for a plugin be structured?
I get the basic plugin concept.
I've read the Codex article on Writing a Plugin
That article talks about the "main plugin file".
How does Wordpress determine "the main plugin file" ?
Q1:
Is it ...
7
votes
1answer
55 views
Wordpress plugin archive
I need to find an archive of some Wordpress plugins.
Previous webmaster of the site installed some plugins and then made modifications to some of them. He did not document these modifications in any ...
7
votes
6answers
268 views
What plugins do you commonly install on a fresh WordPress install?
I'm looking at finding out what plugins others install most of the time on a fresh WordPress install; the plugins that add value to pretty much any website that is running WordPress.
My list of ...
7
votes
4answers
363 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 ...
7
votes
1answer
115 views
Shared functionality in plugins and themes
I recently started to develop plugins and themes and I found that I need to use several functions of on both.
Sometime I think about to check if function / class exist before declared as said on this ...
7
votes
3answers
495 views
Help with 4.6. Attachment response object in JSON API plugin
I am a big fan of the JSON API plugin. The developer did a great job and I thank him very much. I am learning how to work with json and jquery and am trying to limit the information I get back from ...
7
votes
2answers
759 views
How to add field for new site-wide option on Network Settings screen?
I'm working on a plugin, and part of it involves setting an option value that applies to all sites in a WordPress network. I know about the add_site_option and get_site_option functions that let you ...
7
votes
2answers
242 views
Plugin for editing options on multisite?
does anyone know of a plugin for mass editing of settings on a multisite installation? Something like Plugin Commander for Settings?
7
votes
3answers
902 views
How can I allow commas in tag names?
I want to allow commas in tag names? For example, "hello, world" or "portland, or" but Wordpress keeps separating them. I can do it from the categories page:
And it shows up fine. But anything ...
6
votes
2answers
2k views
List all sidebar names?
I'm listing all sidebars like that:
global $wp_registered_sidebars;
echo '<pre>';
print_r($wp_registered_sidebars);
echo '</pre>'
So I'm getting something like:
Array
(
...
6
votes
3answers
5k views
How To Activate Plugins via Code?
If possible, how can installed plugins (meaning the files have been placed in wp-content/plugins directory) be activated from other plugins?
6
votes
2answers
5k views
How can I force a file download in the WordPress backend?
I would like to add a "Click to download" button to one of my WordPress plugins, and I'm not sure which hook to use. So far, hooking 'admin_init' to this code seems to work:
header("Content-type: ...
6
votes
3answers
297 views
Where do I put the code snippets I found here or somewhere else on the web?
Many posts here or somewhere else contain code, but they do not say where to put it.
Example:
I have found this post: How do I turn off 301 redirecting posts (not canonical)?
I'm a newbie with PHP. ...
6
votes
6answers
3k views
WordPress Plug-in Development In MVC Architecture, How?
I think, the wordpress plug-in architecture is not MVC. So I want to use/do the MVC architecture in WordPress plug-in development (like cakephp, codeIgniter ). How can I use them in plguin ...
6
votes
3answers
331 views
What are the best practices for updating?
Don't want to do anything to take down my blog. Here are some upgrade-related questions:
How often should Wordpress be updated?
What is the best way to do it?
How to know if there is a problem with ...
6
votes
2answers
441 views
wp.media update options and force render on uploader
Elliot here from the "Advanced Custom Fields" plugin.
I'm working on integrating the new WP 3.5 uploader into the ACF plugin and can't find much documentation about the new uploader at all!
Creating ...
6
votes
3answers
432 views
How to create custom message on plugin update
I saw this message today when accessing my plugin page:
So, how do I create this if I want to update my own plugins that's hosted on wordpress?
6
votes
3answers
841 views
Turn Off Auto Update for Single Plugin
I have a plugin that I know I never want to update. I am aware that this is NOT best practice, but in this case it must be done. Is there any way to stop WordPress from prompting me to auto-update a ...
6
votes
2answers
110 views
How to prevent a post from being deleted?
For auditing issue, I only want a post can be trashed, but not deleted - for all users.
So I have a plugin like
add_action('before_delete_post', function($id) {
wp_die(0);
});
But ...
6
votes
1answer
815 views
What plugin can I use to create a list / slideshow of featured images?
I'm looking for a plugin that will allow the user to upload files, maybe 4-10 that can be used on the homepage as part of a slideshow. I can code the slideshow part myself, if necessary, but the thing ...
6
votes
1answer
102 views
Is there any sort of theme dependency management?
I'm developing a Wordpress theme with a few other individuals and am running into a problem where I add a plugin and then I have tell the other developers about the plugin I installed and the settings ...
6
votes
2answers
656 views
Why activate_plugin is not working in register_activation_hook
I am trying to activate second plugin automatically while activating first plugin.
register_activation_hook(__FILE__, 'example_activation' );
function example_activation() {
...
6
votes
2answers
208 views
Creating Unique Post URLs for A/B Testing… Is this even possible?
I want to create a WordPress plugin that allows me to do A/B testing for WordPress standard posts, but I can't use the Shrimptest plugin because I need a spin: Since I'm ultimately testing ...
6
votes
1answer
267 views
Create theme files for plugin
Basically I've made a plugin to create a new post type (event).
Now I want to create a single-event.php layout file.
I don't want to have to stick it in the theme folder, I want to put it into my ...
6
votes
3answers
2k views
WordPress sharding: which multi-DB plugin to use?
I've got a WordPress multisite installation that's hosting enough blogs I need to shard the database. I see there are three plugins available to spread WordPress across multiple databases:
...
6
votes
3answers
1k views
How can I create a bash install script for my Wordpress sites setup (WP+plugins+theme)?
I build a lot of websites with Wordpress, and my initial setup is basically always the same :
Latest version of WP
Latest versions of about 5 plugins
My naked development theme
Instead of ...
6
votes
1answer
372 views
Experiences with adding Nonces to the comment form
I was wondering about the impact nonces would have on the default comment form a theme has. Because Nonces are a built-in feature of WordPress I thought about giving it a try.
Does somebody has ...
5
votes
2answers
109 views
Can I leave off plugin textdomain for terms used in core?
I've got a plugin that puts post statuses into post type admin menus. I'm in the middle of internationalizing it, and I'm wondering how to handle this situation.
The plugin uses some unique strings ...
5
votes
3answers
346 views
How to add “Stick this post to the front page” to front end?
I have a baseball related website with multiple authors. I use the "Stick this post to the front page" to denote an "Editor's Pick" on an article. I would like to add a link/button to allow editor to ...
5
votes
2answers
232 views
Open Source plugin and requires licence
Hi I am thinking of releasing a plugin, it seems that WordPress pushes for all plugins to be released as GPL. I have no problem with that, but I've noticed that Gravity forms plugin is GPL + requires ...
5
votes
5answers
4k views
Removing the “Your backup folder MIGHT be visible to the public” Message Generated by the WP-DBManager Plugin
I upgraded a client's WordPress from 2.8 to 3.0.1 and after upgrading I am now receiving this message in the dashboard:
Your backup folder MIGHT be visible to
the public
To correct this ...
5
votes
4answers
195 views
How do you allow plugins to be updated using the GUI without breaking your subversion repository?
Development on a WordPress installation is under Subversion version control. We're not using externals to link in the plugins - the plugins are getting installed / updated by non-developers in charge ...
5
votes
3answers
2k views
Creating a default Custom Post Template that a Theme can override
I'm in the midst of building a Wordpress Plugin that adds a custom post type, for which I'd like to include a default template to display. Essentially, this is an event management plugin, and the ...
5
votes
2answers
543 views
Use a plugin to handle custom post types?
I've seen some tutorials showing how to create custom post types - the process seems straightforward enough. The issue I have with this is that the custom type information is part of the theme, and ...
5
votes
4answers
2k views
What is difference between get_bloginfo('url') and get_site_url()?
I am developing a plugin.
I want to know difference between
get_bloginfo('url');
and
get_site_url();
I got same output, then what's the difference?
5
votes
3answers
1k views
Are there any hooks that alter the 404 logic?
Provided you have a 404 page defined in your theme, Wordpress will display a 404 page if "tag" is defined in $wp_query->query_vars, and there are no posts matching that tag.
I'm writing a plugin that ...
5
votes
6answers
351 views
Is it heavyweight plugins or lots of plugins that make a site slow?
I've often heard that having a lot of plugins will slow down a Wordpress site. This makes sense of course, as the more code that executes, the longer it will take.
I'm wondering whether the slowness ...
5
votes
1answer
292 views
How does Wordpress handle MySQL row lock errors?
If there is a WordPress plugin which updates rows in a custom table, but that update encounters a row lock, what happens? E.g. two users simultaneously fire an update on TABLE1, one setting AGE=1 and ...
5
votes
3answers
361 views
How would you require and automatically download dependent plugins?
Was wondering if there was a class or programming technique that would allow me to check for the installation and activation of a particular plugin and if said plugin were not installed, to have it ...
5
votes
4answers
2k views
When would it make sense to use Jetpack?
There was a news item today possibly of interest to those who self-host WordPress: Automattic unveiled the Jetpack plugin. I hadn't heard of it before, but going off the announcement and the site FAQ, ...
5
votes
4answers
108 views
Self Develop or Plugin as first option?
One of the things that attracted me to the WordPress platform was the plugin API and large selection, but more recently I have been self developing before looking for plugins, only using plugins for ...
5
votes
2answers
419 views
Modifying a JS file with data from plugin settings
I have a plugin that, among other things, has a javascript file that requires a few user specific settings. What would be the best way to get those settings into javascript from the plugin's settings ...
5
votes
4answers
1k views
Security and .htaccess
About a month ago I started a WordPress blog on a hosted server related to a hobby. So, I am new to this at present.
Since I'm concerned about security, one thing I did was to install the plugin WP ...
5
votes
2answers
59 views
Is there any debug toolbar that shows whick hooks are called for the current page in Wordpress?
In Django there is a debug toolbar that shows which template files and hooks are called while rendering a page.
Is there any plugin that shows which hooks are called for the current page in ...
5
votes
1answer
219 views
Content generator for development site
Does anybody knows good plugin which can generate dummy posts/tags/categories/users and write dummy comments? I want to generate some content on my development (localhost) site.
5
votes
3answers
582 views
How to create a Wordpress plugin for another wordpress plugin?
I always do changes on the Wordpress plugins for clients. But these changes are always in danger to be lost if the plugin is updated.
Is there is a way to make a plugin for another plugin in ...
5
votes
2answers
224 views
Is there a plugin that will override the “Error establishing a database connection” message?
My provider's database server recently had some downtime and my site was displaying the classic "Error establishing a database connection" message for about an hour.
I knew what the problem was but ...
5
votes
6answers
2k views
Simple rich text editor in Text widget?
I've seen a few plugins that add rich text editing to the default "Text" Widget. However, all of the ones I've tested are either too complicated (or try to do too much) or don't work properly with the ...
5
votes
1answer
641 views
Custom Post Type Templates from Plugin Folder?
I'd like to offer my custom post type as a Plugin, so that people can use it without touching their theme folder. But custom post type templates -- such as single-movies.php -- reside in the theme ...
5
votes
2answers
2k views
How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
Now, when you add or edit a particular post within your desired post type, there are more screen options as well. Although, these Screen Options are showing/hiding meta boxes. I would like to be able ...