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)

0
votes
0answers
87 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
17 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
35 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
18 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
86 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
34 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
127 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
30 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 ...
1
vote
1answer
33 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
1answer
32 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
26 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
42 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
34 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
38 views

mysql_real_escape_string() vs. esc_sql() in WordPress

Does mysql_real_escape_string() and esc_sql() in WordPress both do the same thing? I tried the following: $fetch_row='<p>And again for single posts</p>' echo mysql_real_escape_string( ...
0
votes
0answers
23 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
72 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
39 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
15 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
39 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
28 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
75 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
28 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
20 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
34 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
54 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
11 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
9 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
14 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
194 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
10 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
63 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
18 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
24 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
18 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
15 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
35 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
vote
1answer
44 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
18 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
12 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
4
votes
3answers
300 views

Using Docker for WordPress development

I am getting started with Docker and I'm still new to professional WordPress development practices. I would like to set up a Docker development environment (on my Mac) so that I can do custom ...
1
vote
0answers
72 views

How to use update and delete query in wordpress

First i write manually update, delete, insert and select query and execute data with mysql_query function Like this: Select query $prefix = $wpdb->prefix; $postSql = "SELECT DISTINCT post_id ...
0
votes
0answers
50 views

Add a sidebar for menu item?

I want to modify the WordPress navigation menu. I have added a custom checkbox in the menu items custommenu. If that is enabled, then I want to remove the submenu items for that item and include a ...
0
votes
1answer
16 views

Associate custom categories to different user IDs

I am trying to associate custom categories created by different users to their userIDs. I did that with custom posts and custom pages, but I really have no idea on how I can do that with the custom ...
0
votes
0answers
19 views

3rd Party Plugin dependency - how to correctly load classes

I'm trying to understand how this block of code in the an existing wordpress plugin which depends on a third party events-manager plugin works. I understand that the 'plugins_loaded' action hook is ...
0
votes
1answer
18 views

shortcode which is introduced into entry the blog, and appears in side bar

I have the following shortcode plugin, it works perfectly, nothing more I want to put you in the blog and appear in the sidebar, how I can accomplish this? I want not put a widget in the sidebar, ...
0
votes
0answers
24 views

Replace upload system/Override wp_handle_upload

I am going to be running a WP site on Heroku, and none of the current solutions for the media library fit my needs. There is a system for Amazon S3 (not using because paid), and a mapping system for ...
0
votes
1answer
187 views

How to insert HTML/CSS/JS into my iframe plugin?

I currently have an iframe plugin that displays on a WordPress page by shortcode. Currently I have been displaying websites in my iframes "src" but I recently came across an issue to display my very ...
0
votes
2answers
40 views

How to Show Author image and url in WordPress plugin directory? [closed]

I just added a plugin(My-auction-creator) in to WordPress Plugin directory. But sadly when I open the plugin URL the author image is not showing nor the url is linked. So anyone can help me to show ...
0
votes
0answers
29 views

Set options outside of the admin panel

I would like to update my plugin options outside of the options page. I have built a secure hub where only users with the capability 'access-hub' can access it. I would like to let users update my ...
0
votes
0answers
20 views

Is there a way to check PHP version on the hosting pre plugin activation? [duplicate]

Our plugin works on PHP 5.3+ only and we are having instances when users install our plugin on PHP 5.2 and receive an unhelpful message like "Parse error: ...". Is there a way to somehow tell ...