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
3answers
1k views

How to trap “Publish” button to check for meta box validation?

I'm trying to do some form validation on my custom meta box, and I remember somewhere reading about some javascript function to disable/enable the Publish button - except I can't find it. How do I ...
0
votes
1answer
184 views

Run function on plugin activation before plugin is loaded

I have two versions of the same plugin - one is a free version on WordPress.org and the other is a paid upgrade. Both versions use the same function names and so can't be activated at the same time. ...
0
votes
0answers
28 views

wp_mail links are dead

I am trying to make a pseudo-newsletter type plugin which will email that authors of certain posts. The email sends the contents of a textarea with some extra text added to the end of it. I've sent ...
1
vote
1answer
39 views

Including third party libraries in plugin [closed]

I am developing a wordpress plugin and would like to include third party libraries from Github. How do I include these a library so I can use the functions in my plugin?
2
votes
2answers
1k views

How to use filter hook 'post_updated_messages' in coherence with action hook 'save_post'

I am trying to send out e-mail, SMS and IM notifications to group members of this WordPress website, whenever a WordPress page in their user group has been published/updated. I figured using the ...
0
votes
2answers
1k views

Empty POST data on server on AJAX request using Angular $http

I use AngularJS to build an AJAX form which is then processed on a server running Wordpress. Server-side handler is simple: function rnr_contact_callback() { $name = $_POST['firstName'] . ' ' . ...
0
votes
0answers
37 views

Replacing Gallery Shortcode with Foundation's Clearing

Using wordpress 4.1 and Foundation 5, and attempting to replace the stock gallery shortcode with foundation's clearing. In debugging mode, I get a notice of: Strict Standards: ...
0
votes
0answers
62 views

update_user_meta not working

I'm trying to add additional profile pages and then allow users to submit custom profile data through the pages. I want this data to be unique to each user and only viewable by that user. The code is ...
0
votes
1answer
26 views

Plugin settings not saving and 404 is generated on submit

I am creating a WordPress using https://github.com/nadeem-khan/WordPress-Plugin-Template as a starter template. This is my settings class file named 'class-xyz.php': <?php if ...
3
votes
3answers
8k views

Category listing with thumbnail and description on home page

I really need a comprehensive solution to this, so I'm offering up almost a quarter of my rep in bounty :) I would like to have a plugin that creates a custom category listing on my home page. To do ...
0
votes
0answers
50 views

Override A Plugin Variable And Function Via Functions.php

Is it possible to override a variable in a plugin function without altering the plugin? The closest thread I found to answer this problem is this one : Pass A Value From Outside To A Plugin Variable ...
0
votes
1answer
20 views

User subscription emails not firing from custom plugin

I have a custom plugin that should fire off emails based on a saved search function. The function seems to work when I enter one specific email but not when looping through profiles. Here is the ...
0
votes
1answer
16 views

Plugin Development - Multilangual - Different pages

I'm currently developing a User Registration plugin, since I couldn't find any free that are properly translated I decided to create my own. The Plugin is mainly completed... My PO and MO files are ...
0
votes
1answer
31 views

How to use get_pages( ) correctly with 'child_of' to replace page with child page

I'm struggling to get the results I want here. After a couple hours of googling, I've decided to ask you all for help. I'm trying to look at children of the current (queried) page, and if the page ...
0
votes
0answers
85 views

How to show portfolio items from modal popup on portfolio plugin

When I have used this modal controller in while loop, the modal pop-up is working with framework metabox. The problem is when I reload my portfolio page, where all portfolio images are showing, the ...
0
votes
0answers
38 views

Creating an archive page listing external data

I am working on a plugin that displays external data, within WordPress. I am attempting to create two pages. A listing/archive page, and a detail page. Example: /cars/ List all cars /cars/abc/ ...
0
votes
0answers
22 views

AutoPopulate Excerpt with content minus shortcode

I am writing a plugin to auto-populate excerpt field on Woothemes Sensei Lesson CPT with text inside shortcodes placed on the content area. Well, it is working fine for lessons CPT, but...on posts ...
5
votes
2answers
448 views

Strategies to implement selective loading of plugins

I'm trying to figure out some kind of mechanism to load plugins on demand, depending on the page url, to improve performance. My primary concern is that I have some admin-ajax.php calls that are ...
0
votes
3answers
86 views

Displaying External Data - Not Posts

I am creating a plugin that needs to display external data, not wordpress posts. What I have done: registered rewrites so wp recognizes my archive/single URLs, hooked into template_include to direct ...
0
votes
1answer
37 views

Automating the process of shortcode generation in a plugin - how is it done?

Automatic short code generation is a technique that I see many plugin authors use but unfortunately, I have yet to come across a tutorial that details this subject so I am hoping that someone in this ...
1
vote
1answer
35 views

How do I include drag-and-drop in a plugin?

I want to build a WordPress plugin that will allow users to add and delete fields from a custom post type. I want them to be able to do this with drag-and-drop, just like they add widgets to a ...
17
votes
5answers
5k views

Is there any plugin development framework

Since I am new to wordpress plugin development I have been examining internal structure of many plugin's and I could find most of them doesnt fit any pattern and understanding how they works is pretty ...
5
votes
4answers
4k views

Passing arguments to a admin menu page callback?

Situation: I'm working on a plugin and I'm developing it as a class, everything worked fine until I run into this situation. I wanted to make things a bit cleaner and tried this.. class MyPlugin { ...
-1
votes
2answers
37 views

How to Prove Ownership of plugin [closed]

So I'm considering writing wordpress plugins to sell. Apparently distributing these type of plugins requires you to hand over the source code to the client. What would happen if one of the clients ...
0
votes
2answers
63 views

Save Checkbox value in Plugin

I cannot seem to save the value of a checkbox in a plugin I am creating. When I uncheck it and click Save Settings, it reverts to being checked again. I'm not sure where I have gone wrong. Any help ...
-3
votes
1answer
25 views

Is wordpress plugin development active? [closed]

I've started working with wordpress and reading about plugins. Most of my searches and found plugins are from around 2008. Is there still active development or have developers moved on to a different ...
0
votes
0answers
13 views

Creating a new elegant builder module?

Hi I am using elegant builder on my site and would love the ability create a new module, I basically want a text module with some custom styles applied before and after. I have contacted elegant ...
8
votes
3answers
171 views

Plugin upgrading: Widget settings

I have tried doing some research on this but haven't found anything solid yet. I have a plugin I am working on and between the last version and the new version we made some updates to the widget that ...
0
votes
1answer
66 views

Organizing The Custom Post Type with Taxonomies / Parent Posts

I am trying to make a custom post type called 'Songs'. It will have only two fields being 'Title' & 'Audio File'. I would also be creating a tag taxonomy field called 'Genres' so that admin can ...
0
votes
1answer
14 views

List Available Templates for Current Theme in a Plugin

I am new to Wordpress as of last week and am having trouble understanding some things. I have created a plugin that allows for the dynamic creation of multiple pages. There is one thing that I ...
0
votes
1answer
22 views

Detect each active instance of a widget

Is it possible to detect each active instance of a particular widget? As part of a plugin I'm working on, I want to run a for each loop on each widget instance Each widget is a Twitter feed and the ...
7
votes
3answers
688 views

How to redirect to settings page once the plugin is activated?

I created the Plugin of my own. Everything seems OK but one thing I want to do in that plugin is redirect to the corresponding plugin settings page when the plugin is activate. For example: ...
0
votes
1answer
44 views

Plugin Development Form Self Submission

I am a new to Wordpress and I am trying to develop a plugin. All the plugin needs to do is provide an html form for a back end user to fill out then submit. Once the user hits submit on the form, I ...
1
vote
1answer
1k views

How to add an admin notice upon post save/update

I have a post type the uses post_save to take the address from the post-meta and retrieve the lat/lng coordinates from the Google API. I need a way of notifying the user if there was an issue with ...
0
votes
0answers
16 views

wp_mail_from: different from address each time

I have a form. Where user gives their name and email address. The I use the custom plugin to send the mail. The requirement is I need to send the mail on behalf of the user who signed. Now in wp_mail ...
1
vote
1answer
13 views

Is there a way to list all actions registered by a plugin or theme?

I'd like to override a function registered using do_action() by a third party theme or plugin. remove_action() looks to be the way to do this but its not working in my particular case. Is there a way ...
0
votes
1answer
25 views

Act on user meta updated, but only once

My plugin is calling a third party over http whenever a users meta data is updated. To do this I am using the updated_user_meta hook. It seems however that that hook is called multiple times, once ...
0
votes
0answers
19 views

error on adding menu walker

I am trying to add a menu walker. I have added the following code in a plugin: class description_walker extends Walker_Nav_Menu { function description_walker() { } function ...
0
votes
1answer
45 views

Wordpress plugin: efficient way to store large data

I have excel file with 1000+ records. Basically it has zipcode and corresponding email addresses. I need to create a custom wordpress plugin which queries this data and sends the mail. It would be ...
0
votes
0answers
12 views

WordPress Direct Access Function

i am writing WordPress plugin with that plugin SMS controller file is placed for twilio unfortunately i can't use WordPress functions with direct access and Twilio can't use that file it is in ...
0
votes
0answers
34 views

No Error Log File, no debug info

My error when writing a plugin for uploads and yes, I can debug. But it just jumps directly from this line to destruct the end of my wp-config.php // Enable WP_DEBUG mode define('WP_DEBUG', ...
10
votes
2answers
917 views

Single functions.php or split into many small files?

I am creating a simple framework with theme options. I have divided chunks of code within functions.php and placed it within a specific folder structure. Now in my main functions.php file, I only ...
1
vote
2answers
2k views

Edit Yoast SEO breadcrumbs output

I want to customise the output of Yoast SEO breadcrumbs, I have this so far which works great: add_filter( 'wpseo_breadcrumb_single_link', 'ss_breadcrumb_single_link', 10, 2 ); function ...
1
vote
1answer
99 views

How to get Login Error messages on a custom template

I want to display login form and process the login on the same page, so that if there is any login error it should display the error messages on the same page. I have added this function: ...
0
votes
1answer
17 views

Is there a general way to get a themes primary colour?

I'm writing a plugin and I'd like it to play nicely with wordpress themes by adopting the themes colour schemes. To be specific, not just use a HTML element that was incidentally styled by a themes ...
0
votes
0answers
36 views

Created a function similar to facebook events with [ Attending / Not attending ] options

I modified and extended an event plugin on wordpress that is being hosted on GITHUB then finally came up with this idea in a separate PHP file and added options such as the ATTENDING and NOT ATTENDING ...
0
votes
0answers
70 views

Wordpress consume and display Rest API with custom url struct

Hi I am writing a plugin for wordpress which needs to display results from an external REST API. I need a brief overview on the best stategy to approach it. I can write all the code etc I just need ...
0
votes
1answer
87 views

Redirect default login page to a custom page [duplicate]

I want to redirect the default WordPress login page to a custom login page. I am adding this code in a plugin: if (!is_user_logged_in()) { wp_redirect( wp_login_url( $redirect ) ); exit(); } ...
0
votes
1answer
122 views

How to get current page name in my wordpress plugin

I am creating a custom wordpress plugin. Where for some pages like http://example.com/clinic http://example.com/pharmacy i will append my template code from my plugin folder. Which mean i will ...
3
votes
3answers
9k views

Wordpress Vote Plugin - Vote Once and Track User

I've been looking through voting plugins and cannot seem to find one that works for me. I'm hoping you can help me out before I have to build my own as I'm tight on time. I have a page that will be ...