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 (2)

22
votes
1answer
4k views

Passing a parameter to filter and action functions

Is a way to pass my own parameters to the function in add_filter or add_action. For example take a look in the following code: function my_content($content, $my_param) { do something... using ...
0
votes
0answers
13 views

Integrate Wordpress Importer into Option Tree

I read here : One Click demo content installation feature in WordPress theme options panel Very good tutorial. I've followed what was written in the article. My question is, how to integrate ...
1
vote
2answers
571 views

Conditional tag in Widget Logic for checking if top level page or if subpage

I'm using the Widget Logic plugin to show widgets on certain pages using Wordpress Conditional Tags (or any general PHP code). What I would like to do is only show a widget on child pages, not top ...
1
vote
1answer
366 views

List of all existing Wordpress plugins

Is there a place from where I can get a list of all existing Wordpress plugins located in http://wordpress.org/extend/plugins/ I am trying to test my website for vulnerabilities and need such list. ...
0
votes
0answers
20 views

Page doesn't load

I have following code, but my page doesn't load anymore. What is wrong? require( plugin_dir_path( __FILE__ ) . 'menu.php'); require_once( plugin_dir_path( __FILE__ ) . 'getuser.php'); add_action( ...
0
votes
1answer
517 views

Add javascript to wp_head with call to plugin options?

I am trying to write a plugin in wordpress and have been doing it in stages, I understand how to add javascript to the wp_head however adding multiple function calls to the plugins options is ...
0
votes
0answers
13 views

What is a good way to test that plugin upgrades have completed properly?

I'm working to automate plugin upgrades across all my WordPress installs. Part of that process is making sure the plugins upgraded correctly, didn't introduce errors and don't cause new conflicts with ...
0
votes
1answer
46 views

Plugin dont Work Inside AJAX Call

I'm doing a Progress Bar Shopping Experience (in my WooCommerce site). First the user select the plan (demo, home, business, premium), then select the products he wants, and finally I've to show them ...
1
vote
2answers
543 views

Cannot install plugins on Centos VPS

I am unable to install plugins on my Centos 6 VPS. When I attempt the install I get this: Installing Plugin: BotDetect WordPress CAPTCHA 3.0.Beta1.7 Downloading install package from [web ...
-3
votes
2answers
40 views

Template library for WordPress [closed]

I don't like to mix html/php/css code... but in some way WordPress forces me to do this bad thing. Is it possible, or is it a good idea to use something like Smarty or PHPTAL in WordPress ...
0
votes
1answer
270 views

How to add nofollow on all external links without plugin?

I have tried many plugins, which are doing the thing I want, but they are blocking my other plugins (1 in particular, which is indispensable for my site). Anyhow; how can I add a nofollow on all my ...
0
votes
3answers
469 views

A plugin for having rel=“nofollow” in posts?

I'd like to make all the links in posts on one of my sites to be with rel="nofollow" on links inside posts. I wasn't able to find a plugin that did the job except for WP-NoExternalLinks. It also ...
3
votes
1answer
37 views

Translate third party plugin and save translation files in custom theme

I'm using Codestyling Localization and I want to translate a plugin and I want the translation files to be saved in the translation directory in the theme I'm building and not in the plugins ...
0
votes
0answers
23 views

Custom Capability - show plugin menu to these users and admins only

I have created a plugin which has custom menu pages. The plugin creates two roles upon activation (let's say role 1 and role 2). role 1 is used for some coding and works fine, WordPress users are ...
1
vote
2answers
974 views

Wordpress plugin search does not work and updates are not shown, VPS install

I have configured a VPS running CentOS 6.3 and Plesk 11. The install of a blank version of Wordpress works well. However, I have problems with updating Wordpress and searching for plugins. The two ...
0
votes
1answer
18 views

How do I link an image in my plugin so it displays on WordPress?

I'm creating a plugin for a college project. The plugin is very simple: it searches for name of the site address and upon finding it in a post, it outputs the site address with an image. However, I ...
0
votes
1answer
29 views

Plugins missing in front end but appear in backend FTP

So, I'm working with the Advanced Access Manager and then the W3 Total Cache plugins and all of a sudden WHOOPS, there's a problem. First last night: After setting up W3 Total Cache, and then ...
1
vote
1answer
6k views

Woocommerce - Specific template for product category? [closed]

I'd like to create a specific template for specific category (not for single product). Is it possible and how to do it? Thanks,
0
votes
1answer
268 views

Wordpress: Getting a “Warning: call_user_func_array()” error whenever I install/update a plugin

This started happening after I moved my wordpress installation from the shared hosting to a vps. The full error is this: Warning: call_user_func_array() expects parameter 1 to be a valid ...
0
votes
1answer
24 views

Redirect loop when forwarding to mobile site

I have successfully redirected my page to m.example.com from example.com when i open in mobile environment with this code in functions.php add_action('template_redirect', ...
5
votes
2answers
5k views

Woocommerce Add Variation Product to Cart from custom link [closed]

I am trying to add a variation product to my cart directly through a link. I am setting the variation_id with the query string. As far as I can tell I am sending the data the exact same way as the ...
0
votes
1answer
26 views

Using $wpdb in a plugin, what sort of data does it return?

I have following code: <?php $q = intval($_GET['q']); global $wpdb; $myoption = get_option( 'fixformdata_options' ); $myoptionValue = maybe_unserialize( $myoption ); $result2 = ...
4
votes
3answers
8k views

insert data in database table from plugin with WP3.1

I am quite new in WP Plugin World. I am trying to develop a plugin in WP 3.1 when I am trying to insert data into my table named "wp_enam" in the following way: $wpdb->insert($wpdb->enam, ...
2
votes
2answers
339 views

multiple files in wordpress plugin

i'm trying to write a plugin with multi files, i'm sure i did it before without a problem but now i have the problem in the subject. in the main plugin file i included a file name - ydp-includes.php, ...
0
votes
1answer
19 views

Auto delete Wordpress users according to time

In my wordpress site spam users are registered so i am add mail confirmation to my resister area. And my problem is how can i delete users when not check or activated the mail. is it possible to ...
2
votes
1answer
282 views

Trigger Autosave or disable unsaved changes dialog

As the title says, I want to trigger the autosave function of wordpress manually or just disable the "unsaved changes" dialog. The reason for this: I'm developing a plugin which reloads the post edit ...
0
votes
0answers
27 views

How to add submenu to Wordpress plugin in the same Directory of main Plugin?

I have created a plugin and now i want to add a third party plugin inside of the Main Plugin menu, so it can be submenu. How do you make the second plugin appear? Directory Setup: ...
-3
votes
1answer
37 views

Best way to include wp-config.php

I was wondering what way is the best to include wp-config.php into a plugin. I have read about relative paths that can fail if the plugin files are situated somewhere else.
0
votes
1answer
325 views

Create Short code dynamically

I want to generate short code for my gallery dynamically. For a single gallery, it is easy to create a short code for my gallery using add_shortcode( 'image-gallery', 'gallery' ) Now my question is ...
1
vote
1answer
28 views

Wordpress JSON API remove posts from a specific category

I have installed Wordpress JSON APi plugin, the idea what I want to do is to retrieve all posts from a websites except a specific category for example with ID: 434. I need all posts except from this ...
0
votes
1answer
368 views

reCAPTCHA on page template without plugin

I have a template for contact us page which includes a small form with few text fields. I want to add Recaptcha to avoid spams. I already use WP-recaptch plugin which only works for default ...
1
vote
1answer
406 views

Shortcode in AJAX popup

I am trying to use a shortcode from Ultimate Facebook plugin to display a FB connect button in an AJAX popup and can't seem to get it work properly. I searched and used the solution given by djb in ...
1
vote
5answers
879 views

How to trigger $_GET request within admin plugin page?

I have this form in my plugin function: <form method="get" action="" enctype="multipart/form-data"> <p class="submit"> <input type="hidden" name="do_it_hidden" value="run"> ...
2
votes
2answers
277 views

Wordpress image resizing on home page (product category)

I have been working on resizing the images on my wordpress website, the images are not appearing on equal sizes or not aligning properly. But inside the product pages it looks normal size but in the ...
3
votes
1answer
47 views

Autogenerate wordpress shortcodes using array?

I was create a shortcode which automatically generate shortcodes with given array key and value. Function names does not generate dynamically. Note: Array KEY = ShortcodeName and Value = Wordpress ...
1
vote
1answer
765 views

Manually installed plugin doesn't show up

I installed a plugin called hide-title by unzipping it and copying the files to the plugins dir. But it doesn't show up in the plugin list. I've checked the following: the plugin's main php file ...
0
votes
1answer
14 views

WordPress plugin DB upgrade

I am writing plugin. I have added 1 custom table in database. Suppose my plugin's current version is 1.0 After few days i am upgrading plugin and now its version 1.2. Same for after some time and now ...
0
votes
1answer
26 views

Restrict ability to edit pages by username

I'm looking for a plugin or snippet with the following function: There is a WordPress Website with approx. 30 registered users. Every user get 2 Pages to edit his or her Products. Everyone can view ...
-1
votes
1answer
28 views

Ajax in wordpress [duplicate]

I tried to write ajax with jquery to fetch data from database butajax doesn't return any data. I put that code in header and it return the whole html content in response. What is the code need to ...
0
votes
0answers
26 views

Need help with custom PHP plugin

I'm trying to write a small plugin to use for testing login credentials to use with some games I'm making. But I keep running into issues with the script I can't figure out. The issue I'm having is ...
0
votes
1answer
261 views

Unable to add TAB character to post?

I am using the CodeColorer plugin to display source code in my WordPress. I am trying to have my code indented so that it displays properly on the website. However, when I try to add the following ...
0
votes
0answers
11 views

Setting a taxonomy consisting of sites' name

Hi I am running a multisite and I would like to set the taxonomy as sites' name. so the category will have options of Group A, Group B etc. The problem I have now is that I do not know how to get a ...
0
votes
0answers
17 views

How to add multi uploader to wordpress plugin?

I have a plugin where i need it two handle multi uploading forms to capture some images. but when i program the first one everything goes well and i can simply upload image and show a preview of that ...
0
votes
0answers
15 views

A real way to override BuddyPress files in a WordPress plugin

Is there a working (must be) way to override BuddyPress template files in via a WordPress plugin. I know it can be done using a theme, but is it possible to do it with a plugin? I'm really eager to ...
0
votes
1answer
434 views

Add custom text color WordPress 3.9 TinyMCE 4 Visual editor

I had a code snippet which would help me to add some custom color to the visual editor text color dropdown along with the default colors. I'm pasting the snippet below. function change_mce_options( ...
0
votes
1answer
18 views

Force Network Activated Plugin to Run After Site Level Plugins

I have a custom plugin I created and network activated it on WordPress Multi-Site install. I plan to use this plugin to override/enhance functionality for plugins available on my installation. The ...
0
votes
0answers
40 views

Force download a file within plugin file

I am trying to make a plugin which will force a certain file to download. I cannot find any examples of other people downloading files using a wordpress plug in. I simplified the code a little bit. I ...
0
votes
1answer
53 views

How to load css files in a specific order

I'm wondering if someone can help me with this. The theme I am working on has a custom theme options page where you can select various colors for the website. The problem is that the stylesheet it ...
4
votes
1answer
300 views

Way to force media uploader use custom image size

I've implemented media uploader to my custom category image plugin and was wondering can I somehow force it use my custom image size I've set only for categories. ... So in screen shot above, I'd ...
5
votes
2answers
1k views

How to do I get a list of active plugins on my wordpress blog programmatically?

I have 2 blogs, one which is multisite and one which isn't. I want to get a list of plugins active on both the blogs so I can compare them. On the multisite blog, I want to list the plugins which are ...