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
1answer
63 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 ...
5
votes
1answer
79 views

Vagrant script to setup all the common PHP / WordPress version combinations

I am looking for a way to quickly and repeatedly set up testing / debugging environment for our plugin, most probably using Vagrant. Projects like VVV focus on a single-environment setup (or, a couple ...
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
53 views

Best way for plugin to accept POSTs?

The problem: I'm developing a plugin which needs to accept POST data (webhooks from an external source). I do not have control over the format of the data POSTed. My only option for passing my own ...
0
votes
1answer
20 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 ...
0
votes
1answer
39 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 ...
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
23 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
18 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
43 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
31 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', ...
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
65 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 ...
1
vote
1answer
85 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: ...
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
73 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
103 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 ...
0
votes
2answers
30 views

Simple plugin don't display content

Trying to learn WP plugin development. Followed all the instructions. plugins/e4-test-1 directory. Main php file (e4-test-1.php): <?php /** * Plugin Name: Test 1 * Plugin URI: ...
1
vote
0answers
31 views

Adding custom input field in menu backend [duplicate]

How can I add the custom content in the menu items in the back-end. For example I want to add another input field and save it. I could not find any information in the Codex.
0
votes
3answers
30 views

Can a plugin be used to contain all custom functions to extend other plugins

I am very new to Plugin development and I have used my themes functions.php file to modify functionality as needed to date. As a result of conversation with a customer I was asked if it is possible ...
0
votes
0answers
96 views

$_POST form request with admin-post

I tried to use a form with the following markup using the action admin-post.php <form method='post' action='admin-post.php'> I'm using the action hook suggested by Wordpress to proceed the ...
0
votes
1answer
45 views

Create Array from data in the OPTIONS table

Good Day everyone, I'm trying to create an array from data in the Options table of wordpress. My data all start the same way plugin_order_ and then name of the field information. Is there a way to ...
0
votes
1answer
102 views

Function/Class to list categories with checkboxes

I want a list like in the pictue; witch is here - Posts->New->Select Categories At the moment i have this echo '<select name="pn-cats[]" size="8" style="width: 100%" multiple>'; $args = ...
0
votes
0answers
14 views

Potential problems with building a plugin having sub modules?

I'm in the process of organizing a lot of different functionality that I had historically written as parts of themes so that I can break the various utilities into plugins. At this point, I have my ...
0
votes
1answer
28 views

How wordpress plugin hooks works? [duplicate]

I am new to wordpress development. I am familiar with joomla's ins-and-out working mechanish, now i want to contribute or say learn wordpress. I found that every thing in wordpress is done through ...
0
votes
1answer
116 views

Fatal error: Call to a member function get_page_permastruct() on a non-object

I get this error Fatal error: Call to a member function get_page_permastruct() on a non-object in C:\xampp\htdocs\wordpress\wp-includes\link-template.php on line 358 when i call this function ...
0
votes
2answers
57 views

Displaying data from another database

I'm working on custom plugin that will pull property information from our non-wordpress database. That is working just fine. Where I'm having problems is getting the whole front end piece to work. ...
0
votes
1answer
22 views

Plugin loaded, but not running

We are using a plugin (https://github.com/ADeMen/GOOVAIN/) that is supposed to provide a 'get shortlink' button along with some database updates. It should look like this. This worked perfectly ...
0
votes
1answer
63 views

Render custom taxonomy query as single template

Im developing a "catalogue" plugin using a custom post type and a custom taxonomy. What I want now is to display the custom taxonomy as a single page. That means I if the taxonomy term "Popular Items" ...
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 ...
0
votes
1answer
61 views

Checkbox Undefined index error in Plugin

I am getting some errors when trying to create a checkbox within a simple plugin I am creating. I have a simple settings page at the moment. The errors are: Illegal string offset 'single_images' ...
0
votes
0answers
23 views

Do a summary based on sections in a post

I wonder if it's possible in wordpress to create a summary, let's say at the begining of the post, that displays links to all the post section ? Example: [summary title="Summary"] [section]Title ...
0
votes
0answers
10 views

wpmu_create_site creates broken sites

I am trying to develop a WHMCS provisioning module for WordPress Multisite. So far I have managed to create several sites using wpmu_create_blog, however the function does not assign the new site to ...
0
votes
2answers
38 views

Plugin as custom page

I'm begginer in wordpress (but not begginer in PHP) and I would like to make custom search page as plugin with this url www.example.tld/book-search. It would be simple page for searching books from ...
0
votes
1answer
20 views

Merge custom plugins in one folder

I've made some plugins to print some text with php from the database. I use them in pages via shortcodes. If I put all the code in only one folder, so just one plugin, only one shortcode works,the one ...
1
vote
1answer
45 views

Wordpress Plugin with a shortcode that dynamically generates javascript. Can I use add_action without wrapping the javascript in a function?

Looks like the best way is using: add_action('wp_footer', returnJs); But if my returnJs function is inside my shortcode function and it's used more than once on a page it will return an error trying ...
0
votes
1answer
32 views

Screenshots on plugin page taken old [closed]

In readme before latest release they where named as: BlaBlaBla BlaBlaBla Files also named in same pattern: screenshot-01.png, screenshot-02.png After latest release only ...
0
votes
1answer
191 views

get_pages Drop down list for selection of a page

I am currently developing a plugin inside the admin page and I need to have a drop down list, listing all the pages. I need to be able to select one page and save the "ID" as an option. I am currently ...
3
votes
1answer
63 views

Wordpress scheduled task is called but not executed

I created a plugin with a cron to update all posts of a certain type every 5 minutes. I installed WP Crontrol to check if the cron is registered correctly and everything seems to be okay. This is how ...
0
votes
0answers
41 views

Editing dashboard according to the userrole

I'm relatively new to PHP, I'm editing a plugin that restrict demo users with the role of (subscriber) from some capabilities, and it modifies the dashboard for the demo user(subscriber) and remove ...
0
votes
0answers
21 views

wp_get_referer function always returning false

I am trying to use wp_get_referer function along with "template_redirect" hook in wordpress like this function show_page_name() { $r = wp_get_referer(); var_dump($r); die(); } add_action ...
1
vote
1answer
37 views

How to prevent Composer dependency conflicts amongst WP plugins?

In our plugin development we use Composer to install e.g. Symfony\Process that we later use in the code. The big question is how do we make sure that this dependency is not in a conflict with some ...
0
votes
1answer
44 views

Refresh or redirect page after activate my plugin

I'm quite newbie in PHP and plugin development, and I think I'm missing something obvious but I dont know how to do it. When I activate my plugin (it adds some menu items), everything it's ok except ...
0
votes
0answers
66 views

Removing trailing slash from add_rewrite_rule custom page

I'm currently working on a plugin to add a new page to display data from a custom database table. All is going well so far but when I access the new URLs they are 301 redirected to the same url with ...
0
votes
0answers
12 views

How can my plugin act Network Activated without actually being activated network?

My primary goal is to be able to update my plugins as part of the WP Updater class, but the network aspect is giving me a headache and many wasted hours I will never get back. Does anyone know how to ...
1
vote
1answer
64 views

How Can I setup WP CLI on Windows development machine running AMPPS?

I want to setup WP CLI. On the home page it says that it needs a UNIX like operating system. I am running windows 7 for development but I could probably setup a virtual Ubuntu box or something. Would ...
0
votes
2answers
164 views

Why is 'register_activation_hook' undefined?

I am just getting reaquainted with writing plugins, after writing a whole two about three years ago. Following some example code I found: if(!class_exists('QuizMaster_Plugin_Template')) { class ...