WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins.

learn more… | top users | synonyms (1)

1
vote
1answer
28 views

Check for dependent plugin and if false dont activate plugin

I am creating a plugin for WordPress and this plugin depends on another plugin with a specific version. If I enable my plugin without dependent plugin there are fatal error. Is there a way to check ...
0
votes
1answer
16 views

what is the point of telling add_filter how many parameters you want passed to the function?

In wp-includes/plugin.php (apply_filters) there's this: foreach( (array) current($wp_filter[$tag]) as $the_ ) if ( !is_null($the_['function']) ){ $args[1] = $value; ...
0
votes
1answer
11 views

How can I set a dynamic value for post_updated_messages based on return value of post_updated?

I'm familiar with how to set custom messages for post updates using the post_updated_messages action hook. This question is slightly different. I have a function/action hook on post_updated: ...
0
votes
0answers
10 views

Remove wpautop from plugin editor

I have a plugin that uses visual WP editor, and I need to prevent it from adding <p> tags in content. So looking at remove_filter('the_content', 'wp_autop'); I've tried using this ...
1
vote
2answers
19 views

How to check active theme is parent or child wordpress

I am working on a plugin in plugin. I make template folder and in template folder and there are files of plugin that shows my post type data. First Scenario When user activate my plugin the template ...
0
votes
0answers
15 views

Whats your oponion? Laravel's new “Lumen” for WordPress plugin development?

Would it make any sense to use Lumen for WordPress plugin development? I'm curious. The new lightweight "Lumen" framework, made by Laravel creator Taylor Otwell.
0
votes
0answers
9 views

Overriding a Child Theme Override with a Plugin (WooCommerce)

I have an interesting issue with a WooCommerce build I'm working. Here's how it's set up: WooCommerce Install Set up a WooCommerce folder in our theme folder to make customizations (so as to not ...
0
votes
0answers
5 views

how to clear cache of checkout details for guest in woocommerce after certain time of inactiveness

In wooocommerce a guest shopping items (before loggin) and after that that person goes to checkout page. Now I've create checkout form in such a way that after selecting country from the dropdown it ...
0
votes
0answers
6 views

how to change shipping cost after changing the currency from “WooCommerce Currency Switcher” plugin

I'm developing a woocommerce wordpress shopping cart website, where I use "WooCommerce Currency Switcher" plugin for currency conversion. There are three currencies.. pound, dollar and euro in the ...
0
votes
0answers
11 views

Output API response on admin_notices within user_register hook

I am using the hook user_register to execute a function that makes a couple of api calls to do extra stuff on a remote site when a user is created from my wordpress backend. The api returns a response ...
0
votes
1answer
14 views

From my Plugin Settings Page use check boxes to load specific css files (e.g. Bootstrap / Foundation)

This is my first post on here so bare with me if something goes terribly wrong. The wp plugin I am building requires bootstrap for the shortcodes it generates to be styled as expected when rendered ...
0
votes
1answer
6 views

Open media box library from link

I am developing a plugin in which I want to open media library box after clicking on a link from Admin Panel just like we do for Choose featured image. <a href="#">Choose Image</a> ...
0
votes
0answers
11 views

Woocommerce checkout update totals with datepicker

I've added a new date field on the checkout page. I'd like to create a date based delivery fee calculation. The date field has the 'update_totals_on_change' class. When changing this manually the ...
1
vote
1answer
24 views

do_action() hook into load-(page)

I have created an admin theme settings page where I save all my settings in wp_options. Now I want to expand this settings page by plugins which can be activated and deactivated depending on which ...
0
votes
0answers
10 views

New user email registration wordPress plugin

I want a page which ask me only username and email id. And when I register the the new user, generated username and password should be send to the above mail. Same as we have in "irctc registration" ...
0
votes
0answers
45 views

Google does not index data from custom table used for a plugin

I've got an online shop plugin (made on my own) which uses custom tables for storing data about products. For list of product and for product detail I created WordPress pages and used shortcode to ...
0
votes
1answer
19 views

post_results filter confused by pagination in sidebar and main section

I have a post_results filter that I want to use to manipulate the results returned from a the query. Let's say that it's supposed to put stars around the first post on the first page, second post on ...
-2
votes
0answers
23 views

Condition based on membership [closed]

My website about buy a membership VIP,SLIVER and GOLD click here I want to put condition to choose only one of the 3 type membership how and where I put ?
1
vote
1answer
22 views

How to remove an Ajax action

There is a plugin that is loading ajax actions like so: add_action( 'wp_ajax_nopriv_func_name', array( &$this, 'func_name' ) ); add_action( 'wp_ajax_get_func_name', array( &$this, 'func_name' ...
0
votes
0answers
16 views

Shortcode in a blog post, footer and related products stop working

I have a problem, I develop a shortcode, and it works fine just that when I put it in a blog post, footer and related products stop working. I show you my code I hope you can help me. <?php ...
0
votes
0answers
25 views

Best practice: What belongs in theme and what in plugin for large eCommerce website

I am about to create a large custom eCommerce website that does not fit within WooCommerce. (Most of the times I use WooCommerce for eCommerce.) It has also a completely custom design. However I know ...
0
votes
1answer
25 views

How to add a custom taxonomy to show up in a custom post type menu?

I really don't know hot to ask this question correctly. I've created a custom post type with a name badges and added custom taxonomies to it (level, skill). Now I want to add a new submenu item to ...
0
votes
1answer
22 views

Alternative functions for mysql_free_result and mysql_ping in wordpress functions

what are the alternative function for mysql_free_result and mysql_ping in WordPress functions , does WordPress function provides all the functions like php ? is it necessary to Free result memory for ...
1
vote
0answers
20 views

mysql_real_escape_string() vs. esc_sql() in WordPress

Does mysql_real_escape_string() and esc_sql() in WordPress both do the same work? I tried following the following: $fetch_row='<p>And again for single posts</p>' echo ...
0
votes
0answers
17 views

Trouble Dynamically Generating XML

I am trying to dynamically build a krpano viewer, the XML is output through a function where I grab stuff like hotspots from the database. I am trying to output the XML from a function, but since I am ...
1
vote
3answers
58 views

Plugin child folder?

If I make changes to a plugin's PHP file, e.g. located in wp-content/plugins/plugin-name/, how do I prevent my PHP edits from getting erased once an update for the plugin rolls out? Is there such a ...
0
votes
1answer
13 views

$wpdb->prepare is not working like mysql_real_escape_string

I'm working on a WordPress plugin and recently I have planned to migrate from SQL to $wpdb. I'm using a method called $wpdb->prepare instead of mysql_real_escape_string but it does not work. Here ...
0
votes
0answers
7 views

What's wrong with this code? (TineMCE)

I'm trying to make a button that when it clicked, it wrap some text with shortcodes. Everything went good and I did this button, but now, I want to go to the next step which is to make the button a ...
1
vote
0answers
29 views

How to make own crop image function for WordPress plugin

I am working on a plugin, in plugin i create an upload meta fields for images to upload one or more images. Its working perfectly and in plugin settings i gave options to users that they set images ...
0
votes
0answers
15 views

Gravityform + Custom Post Types Action Hooks?

I'm using gravity forms as well as the gravity forms + custom post types plugin for a job board. Job are added through the gravity form, then the plugin converts them to a custom post type. Jobs are ...
2
votes
1answer
51 views

Timeout on Admin-Ajax?

I am writing a plugin and using admin-ajax. It's a long-running function - that is, it's connecting to an API and loading in posts. This could take 5-10 minutes sometimes. Seems like after 1-2 minutes ...
0
votes
1answer
22 views

Types plugin custom post add_action hooks

I'm using the wp-types plugin to create a custom post type. I'm developing my own plugin which I need to fire whenever a post of my custom post type is updated. Right now add_action( 'save_post', ...
0
votes
0answers
10 views

load_plugin_textdomain doestn't work with add_action plugins_loaded

I am trying to load localization for my plugin. There is directory called languages in my plugin folder with .po and .mo files inside of it. I have the following code in the plugin main file: ...
0
votes
1answer
28 views

Wordpress custom post action hook

I'm working on a plugin for wordpress that I would like to fire every time a custom post of the type 'job' is posted, published, edited, trashed, untrashed, etc. (basically whenever there is an update ...
0
votes
0answers
22 views

Prevent TinyMCE from stripping html comments?

I'm working on a plugin that adds <picture> element support to a site using picturefill.js to polyfill it in - as part of it I'm allowing the picture element html to exist in the editor content. ...
0
votes
0answers
7 views

check server config prior to plugin install

Say I wanted to make it so that a plugin couldn't be installed or activated if the server didn't have a requisite PHP extension installed (eg. libpdf or whatever). How might I do this? Is it ...
0
votes
0answers
5 views

Transition Post Status Causes Menu Not to Save

The following code is in a plugin I'm developing. The code works and xenword_new_post is fired when a WP post is published. The article is updated by xenword_edit_post correctly when a WP post is ...
0
votes
1answer
12 views

Can a plugin differentiate syndication feeds from actual site views?

Is there anything in the WordPress API that I can use in a plugin to detect whether the current request to WordPress is a pull of the syndication feed -- as opposed to an actual view of the web-site? ...
0
votes
2answers
117 views

Add Fields with Sub-Fields to WP Job Manager

I have been working on a custom add-on for WP Job Manager where I modify, via filters, the content displayed. I've used many of the tutorials on www.wpjobmanager.com/documentation, but I'm stuck on ...
0
votes
0answers
5 views

Show h1 intro, while outside my shortcode output

How I can add my h1 heading out ?, but not from inside the loop. Each output has a <div class="relacional"> but I want to have a h1 that falls outside the loo and that above all <div ...
0
votes
1answer
31 views

Allow only 1 taxonomy per custom post type [duplicate]

Wordpress allows Admin to select more than one category for a post , I would like to change that so user is allowed to select only 1 category for a custom post type. Please note I cannot remove ...
0
votes
0answers
13 views

Options not getting saved in my plugin, more over returns an error

I am trying to code this plugin, but In the options page when I try to save the values, it is not getting saved. Moreover it is giving me this error: http://prntscr.com/72jg4e Can somebody please help ...
0
votes
2answers
21 views

Create a free scripts and styles template within a plugin

Let me explain what Im trying to do. Im creating a plugin that will have a main page like a dashboard that will be used to manage the public facing side of the plugin. Just think like a separate app ...
0
votes
0answers
7 views

Using remote data in post/pages/widgets in Wordpress custom plugin by jSON

I have a URL like this: http://examplesite.com/manage/access?id=22&access_key=12345678 This is a jSON file. I want to create custom Wordpress plugin and put this access key in the plugin. When I ...
0
votes
0answers
14 views

No file when adding media directly to a post

I am working on a plugin to do some processing of uploaded images. The code below works fine when I upload an image using the media library. However, when I try to upload media directly into a post ...
0
votes
0answers
27 views

Editing a built plugin: How to activate it only on a single post page

I'm working on an old version of wordpress 3.9.5. I Installed a Pintrest plugin "Pinterest Pin It Button On Image Hover And Post" - which just pops-up a share button for pintrest whenever you hover ...
-1
votes
0answers
17 views

How to remove Buy Now button in woocommerce caro

I wanted to make an online catalog of my products . I recently tried woocommerce and I tried the woocommerce carousel. Everything worked fine except that there is a buy now button appearing in each ...
1
vote
1answer
29 views

WordPress template_include filter not working properly

I am working on a plugin. The plugin make custom post type "product". First i use template_redirect action for redirection to single and category pages. Here is my template_redirect code: ...
0
votes
0answers
12 views

Use URI to query database and display info in main page

I am sorry if this question has been asked before, but I haven't been able to find a potential solution to my problem. I developed a custom plugin, which has a custom table (very simple, 4 fields, ...
0
votes
1answer
10 views

Add a description/hint field in the admin page of a plugin

I made a plugin and now I'm making an admin page for it. I know how to properly add a field in an admin page but do you know how I can add an description/hint field like this (grey text)? Thanks