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.

learn more… | top users | synonyms (3)

5
votes
1answer
7k views

Reposition WooCommerce breadcrumb outside of wrapper content

I currently have this code in my functions file for the WooCommerce plugin.. function my_theme_wrapper_start() { echo the_breadcrumb(); echo '<section role="main"><div class="wrap">';...
5
votes
2answers
5k views

Manually set global $post vars with an ID, in order to use template tags

I have a function retrieving ID's of posts by very specific means. I need to be able to set the global $post in order to use functions like the_content(), which does not allow an ID as a parameter. ...
5
votes
3answers
3k views

How to delete the Hello Dolly plugin automatically?

I'm planing to create a plugin called Goodbye Dolly. Once installed, it will take care for the installation to remove the auto-installing Hello Dolly (Wordpress Plugin) shipping with wordpress. This ...
5
votes
2answers
669 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
1answer
24k views

Given the ID of a product in woocommerce, how can I get its URL?

Say I have the ID of a product in wooCommerce; can I generate its URL somehow? (example /shop/fresh-apples)
5
votes
1answer
2k views

How to make simply “report” button on posts

I'm building up a video-site using wordpress. It embeds videos from different sites. I really need a simply "Report broken video"-button that saves the url in a database or emails it to me. I've ...
5
votes
1answer
7k views

How can I see all the actions attached to an “add_action” hook?

I'm working with the admin bar and trying to debug some of the menus and their priorities. I know several callbacks get bound to actions, such as this one: add_action( 'admin_bar_menu', '...
5
votes
5answers
421 views

Login with OpenID, similar to Stack Exchange sites?

Basically, I would like to add something like this into my WordPress site (which obviously will also give the user an option to sign up for an account using WordPress' default sign up system): Is ...
5
votes
4answers
2k views

What is the best page ordering plugin that works well with WPML? [closed]

The title says it all. What is the best page ordering plugin that works well with WPML? It seems that may are reporting issues with different plugins such as my page order and WPML page order. ...
5
votes
3answers
866 views

Secure WordPress paid plug-in

I want to create a WordPress plug-in but also want to ensure that the plugin can only be used after it has been activated with a serial key that should be unique for each domain. What is the best way ...
5
votes
3answers
197 views

how to include other plugins css files in a shortcode?

I've coded a plugin that creates a shortcode, among other things. That shortcode expects a post_id parameter, it extracts the content of that post and it returns the filtered content of that post (e.g....
5
votes
2answers
4k views

How to declare WooCommerce support in your theme

I have built my own theme, which integrates quite well with WooCommerce, but I want to know how to properly get rid of the notification on top of my theme that said my theme didn't support WooCommerce ...
5
votes
3answers
68k views

WooCommerce shop page to use my custom template [closed]

Before asking the question I want to tell you that I have already asked the question in http://stackoverflow.com/questions/15025213/wordpress-woocommerce-template-file-overiding I am using the ...
5
votes
1answer
1k 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
1answer
4k views

Custom Filter in Wordpress to modify footer information via plugin?

Basically, I've got a plugin that searches for certain tokens in the entire page and replaces the tokens with images. The problem is, I've got one of those tokens in the footer and, as far as I can ...
5
votes
4answers
123 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
3answers
2k views

How do I replace a function, declared inside a plugin's class, in functions.php?

I want to modify a function in a plugin. It is declared in the plugin's main file like this: class WCPGSK_Main { ... public function wcpgsk_email_after_order_table($order) { ... } } Add ...
5
votes
2answers
3k views

WP JSON REST API (Ryan McCue) how to query posts with specific meta data with 'AND' relation?

I use Wp_query class to query my posts. 15 posts are in a template fetched on page load and their filtering works fine. Infinity scroll fetches for other posts using JSON restful services. The filter ...
5
votes
1answer
255 views

Why does WordPress still not support SFTP?

It has been many years now with WordPress 2, WordPress 3 and now even WordPress 4 which is expected to be released shortly that WordPress Publishing Platform does not support SFTP as the option to ...
5
votes
3answers
2k views

Plugin update error message

I'm working on a client website where the framework requires a specific plugin version to work properly. With the follow lines of code in my functions.php file, it stops the plugin from updating ...
5
votes
1answer
7k views

Change the path where wordpress plugins are uploaded

Currently my plugins are getting uploaded to public_html/sitename/wp-content/plugins instead of public_html/wp-content/plugins. Is there any way that I can change the path where word press uploads the ...
5
votes
2answers
522 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
3answers
1k views

Allow all file types for upload

I'm using Wordpress 3.4.2 for a private blog, i.e. one on which only I can post. Now, Wordpress prevents me from uploading certain file types (like C# source files). As far as I understand it, there's ...
5
votes
1answer
2k views

difference between add_options and register_setting

I am confused. Want to save data for my plugin. There are people who use add_options and there are others who use register_settings. My question is What is difference between add_options and ...
5
votes
1answer
489 views

Giving Multiple Authors Access to a Plugin's WP.org Repo

A plugin I've released has a collaborator. So I put them into the readme.txt file and they show up on the plugin page and all that. Does doing this automagically give them access to the SVN ...
5
votes
1answer
1k views

Get a button for <hr> in the Editor

Somehow the WordPress editor doesn't have a button to insert a horizontal line (<hr /> in html). Is there a plugin that adds this button? Or an easy way to add such a button myself?
5
votes
1answer
1k views

How Is Network Activate Different From Activate (by Implementation)?

How is plugin network activate different from normal activation by implementation? What is done/not done in network activation that is done/not done in activation?
5
votes
1answer
327 views

How are plugins in the WordPress plugin directory ranked?

When searching the plugin directory on wordpress.org how are the results ranked? It seems the main components are number of downloads and rating, or is there actually a full blown algorithm behind it ...
5
votes
1answer
522 views

Do plugin files have to follow a specific convention to be “picked up” by WordPress?

I developed a plugin using the normal convention of naming the main plugin file after the plugin folder (i.e. prefix-someplugin for the folder and prefix-someplugin.php for the file). However, I saw ...
5
votes
1answer
5k views

In what order does WordPress load plugin files?

In what order are plugins loaded in WordPress? And within a particular plugin's folder, what order is followed for loading?
5
votes
4answers
14k views

Different template of products for specific category. WooCommerce

For example i have category coffee machines, and one template for coffee machine single product template, but for category coffee i want to have different single-product.php template, how to implement ...
5
votes
3answers
978 views

Is there a plugin for posting inline comments, like in MS Word? [closed]

I want to make a cookbook style wordpress website, on which visitors can place comments inline. Like you do in a paper book with a pen: between the lines. Or like how MS Word handles comments. Does ...
5
votes
3answers
3k views

How can I find plugins' slug?

I'm wondering how can I find plugins' slug (slug = internal name used by WordPress to do plugin updates and to determine which plugins are currently active)? It is usually plugin's folder name but if ...
5
votes
3answers
4k views

Load plugin on specific page only

I have plugin I would like to use only on the contact page, however the script and css is being loaded on every page. Aside from the increased http requests, it is also causing another script to not ...
5
votes
4answers
9k views

What causes the “Are you sure you want to do this?” error with plugins?

This is an odd case I've run into. A site I've had for years started throwing this "error" when i try to make certain backend changes. It seems pervasive - If i try to install, update, activate or ...
5
votes
1answer
892 views

Show Similar Post Titles ( Similar to Stack Exchange )

I really like how Stack Exchange sites handle posts, where after you finish typing the title it will list out similar titles. How can I implement something similar on my WordPress installation? The ...
5
votes
1answer
5k views

[Plugin WPML] : How to create a translation of a post using the WPML API?

I'm trying to figure out how to create a translation for a post using the internal WPML API (inc/wpml-api.php) I simply want to create a translation for post ID xx, set some content and publish it. ...
5
votes
3answers
555 views

WordPress Plugin Development from Scratch. How?

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 ...
5
votes
4answers
496 views

How to transfer a WordPress blog to a different domain?

Let's say we are currently hosting our WordPress blog on certain domain and would like to move it to a new domain. How to do this with the least hassle and SEO hit? Are there any plugins that could ...
5
votes
3answers
436 views

Plugin (or Theme) containing its own Plugins?

My Theme defines its own actions and filters so that it can be extended by third-parties without having to fork or modify the Theme's core code. I already have a few plugins specific to my Theme, ...
5
votes
1answer
6k views

wp_mail and BCC headers

I'm using WP 3.3.1 I am trying to add BCC onto the headers of an email I'm sending out, but the BCC is not being added. public $from = "sender@example.com"; public $replyTo = "sender@example.com"; ...
5
votes
1answer
207 views

Help making my pagination plugin better

I'm not sure if this is the right place to ask for this kind of help since is not an actual question but hopefully I can learn a thing or two. I'm developing a plugin (my first one) inspired in the ...
5
votes
2answers
1k views

Prevent publishing the post before setting a featured image?

As the title says , I want a plugin/function to prevent/inform the user when he tries to publish the post without setting the featured image. ANY HELP ???
5
votes
1answer
3k views

How Do I Use The Wordpress Plugin Posts 2 Posts by Scribu?

I have a Wordpress site that relies on relationships quite heavily. It's a record label website where artists can be related to tours, reviews, album releases and store items throughout the site. I ...
5
votes
1answer
127 views

Allowing Two Developers Access to a Plugin on the WordPress.org Plugin Repository?

The question is "How to Allow Two Developers Access to a Plugin on the WordPress.org Plugin Repository?" This question was asked on the wp-hackers list and @EAMann answered it nicely and it's a great ...
5
votes
1answer
199 views

Plugin Unit Test for Table and Option Creation

I've started to incorporate unit testing in my build. I have a class that creates a database table and a database version option. I have no idea how to test if the table and option are being created. ...
5
votes
1answer
15k views

WooCommerce - How to Add a Custom Field to Cart Items and Cart Totals [closed]

I am using WooCommerce plugin and have the following query: Within the single product page, I have a product where based on certain selections by the buyer, a shipping cost value is calculated, which ...
5
votes
1answer
619 views

Wordpress URL Rewrite not working

I'm trying to create a custom url rewrite for my wordpress plugin. function insert_plugin_rewrite_rule($rules) { global $wp, $wp_rewrite; $wp->add_query_var('update_slug'); $ret = $...
5
votes
4answers
3k views

How to make plugin required in a wp theme without using php conditional statements when calling an individual function from that plugin?

One of my Wordpress themes requires a few third party plugins to run correctly. Most of the times I used to call functions from third party plugins using conditional statements like if(...
5
votes
1answer
4k views

Using functions from a plugin in your theme

I am a beginner to wordpress (and to php for that matter). I am trying to understand some of the basics, and building a little e-commerce store using a plugin called "Jigoshop." I'm reading through ...