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
23 views

How to show phpinfo() only in a new tab?

My problem is that I want to add a link to my plugin which should direct the admin user to a new blank page which shows phpinfo()? Can anyone direct me how to do this? I know WordFence has a feature ...
2
votes
2answers
3k views

get_template_part from plugin

This is default get_template_part function inside WordPress: function get_template_part( $slug, $name = null ) { do_action( "get_template_part_{$slug}", $slug, $name ); $templates = array(); ...
0
votes
1answer
21 views

Acessing WP functions in form submission handler

I have a form which is embedded in a custom post type. The form action points to a PHP file that sits in my mu-plugins directory: <form ...
0
votes
0answers
12 views

How to upload thousands of images with folder tree?

Hi We need to upload meda from FTP and when choose image from add media there show foder tree for choose media. See the attached screenshot.
0
votes
1answer
36 views

How to filter content for specific content variable

I created a plugin that adds content from another post, and places this content next to the original content. I can say, that this content should appear at the bottom of the original post content. I ...
0
votes
3answers
31 views

wp_update_post deletes post meta in CPT

I have a custom post type called 'directory' and it includes a few meta/custom fields. The script below is meant to just change the post status only when run. This isn't on the admin panel where you ...
3
votes
0answers
14 views

Admin settings update updating every time home page is hit?

I have created a plugin that sends an email with all orders placed that day by X o'clock to email Y. I followed the tutorial here: https://scotch.io/tutorials/how-to-build-a-wordpress-plugin-part-1 ...
0
votes
1answer
468 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
1answer
29 views

Problem with AJAX in wordpress plugin

I'm writing a plugin and trying to get some data from the database and post it using AJAX. After sending the AJAX request, PHP processes the data and is trying to give me some page data, but it ...
0
votes
0answers
13 views

How do I let users specify interests on signup and have this reflect content displayed on homepage?

I'm looking for something that will allow my site to have the following functionality: A user creates a login for my site. When creating a username and password, they also select from a list of ...
2
votes
1answer
751 views

save_post hook not triggered in WP v3.6.1

I developed a plugin having a custom metabox that is using the save_post hook to store data. The plugin is 18 months old and is used by thousands of customers, so I'm pretty sure everything is good. ...
0
votes
3answers
39 views

Change default url to plugin custom post type

I have a custom post type in my plugin "Luckydraw" as 'voucher'. By clicking on post link, wordpress generates its URL as : http://localhost:81/luckydraw/index.php/voucher/testing-2/ But I want ...
-2
votes
0answers
14 views

how to change buddypress group status with php? [on hold]

I'm changing the buddypress templates so the group-settings are not shown as a create group step. And you also do not see them in the group admin. I would like to be able to set the group status ...
-1
votes
0answers
31 views

Upload image from frontend and save it in a custom directory and DB table

I need to upload an image through a custom form on the frontend. I'm having trouble understanding the overrides in media_handle_upload and wp_handle_upload. What I want to achieve: Upload and crop ...
0
votes
0answers
15 views

Not Able to Get Custom Post Type in Single and Single-custom-post-type

I have a custom post type called projectsCPT and I am able to display them on page-projectsCPT.php <?php /* Template Name: Projects */ get_header(); ?> <div class="container" ...
2
votes
2answers
30 views

Metabox Not Showing on Custom Post Type But On Pages and Post

I have a Custom Post Type like function cpt_Projects() { $labels = array( 'name' => 'Projects', 'singular_name' => 'Project', 'menu_name' ...
0
votes
0answers
20 views

How to hide a post until its prerequisites are complete

I have two custom post types Exercises and Tempo Submissions. For each exercise, I have a field that contains an array of other exercises that are it's prerequisites. I also have an exercise field ...
0
votes
0answers
18 views

Fastest way to load plugin and store and retrieve settings?

For two plug-ins I made I think it's important that they are as fast as can be when loaded at the front-end side because both insert scripts into the public html source. For this it hooks into almost ...
1
vote
1answer
40 views

Editable form for WordPress plugin options page

For my new plugin Scripts and Tags Manager I want to add the possibility for the users to edit rows and add / remove rows. Each row is a form element that contains a text field for the dynamic ...
0
votes
1answer
1k views

Create an user on external database

I have wordpress site and a project management system from codecanyon. Here is the link I have disabled registration for users in project managment system, only login is enabled. I need to make users ...
0
votes
0answers
25 views

Custom database tables for each forms

I'm wanting a forms functionality, where the form creator can allow the use to create custom tables. Like each form having a separate user specified table and user specified column name as per the ...
0
votes
2answers
20 views

How to update an existing table while updating plugin?

I have added a new field (time_last_seen) in my plugin (v1.1) table then uploaded my plugin as version 1.2 to wordpress svn repository. When I update my plugin from admin panel, it is not creating ...
0
votes
0answers
11 views

INNODB Supports transactions, row-level locking, and foreign keys

When I try to create a table for a plugin (that was dropped in the past) I get the error: #1005 - Can't create table 'database_db.wordpress_popularpostssummary' (errno: -1) (Details…) And the ...
0
votes
0answers
3 views

Comparing a number to each value in array [migrated]

I have users submit tempos(number) and I would like to compare that number to an array of preset numbers and return one value that is the next number up from it. For example: Submitted tempo - ...
-1
votes
0answers
14 views

Having Issue On Metabox Gallery and Attachment URL [on hold]

Using WordPress 4.5.2 , I am trying to add Gallery Metabox to post using this solution but in js part I am getting this error Uncaught TypeError: Cannot read property 'url' of undefined on ...
-1
votes
0answers
18 views

Custom editor, edit posts by page

I'm looking to expand upon the method of sorting Posts by category into specific pages for editors. In the admin panel, I'd like to make it so that instead of Posts being all grouped together on one ...
0
votes
0answers
31 views

Saving dynamically created options

I have an options page that has a dynamic repeatable table row. Currently there are two date fields, I will add more at a later stage. I'm now struggling on how to save the data to the WP database ...
1
vote
1answer
16 views

How to create popup same as wordpress popup feature

I wants to include a popup window which is same like wordpress popup. Like if we click on the wordpress editor's link button it will open a popup window. I wants to create same like that.
1
vote
1answer
37 views

Is there any way to get all the name or slug of template parts used in a page?

I am developing a custom plugin where I am using a single page template and changing the template parts only using ajax,I want to retrieve the template parts slugs or name (like custom-header.php, ...
-4
votes
0answers
15 views

How to add an additional BACS gateway to woocommerce site [closed]

I would like to use different bank-accounts per product (wp / woocommerce). There are tools out there, that allow me to choose different gateways, but I can't choose the amount from the settings ...
-5
votes
0answers
17 views

How to move the WooCommerce coupon to bottom of order review without missing apply coupon

I'm using woocommerce plugin 2.4.13 for my wordpress site. I move the WooCommerce coupon to bottom of order review in checkout page. The problem is billing & shipping information field is become ...
1
vote
3answers
33 views

How to Move the Comments Bubble to the Right Side of the Toolbar

In the admin section, the commments bubble is on the left side of the toolbar. I know how to remove the bubble. What I can't figure out is how to move it to the right hand side of the toolbar (next ...
0
votes
0answers
16 views

Object Oriented plugin, add action and variables

I'm developing a plugin using the WordPress Plugin Boilerplate and am after hitting a wall. I need to hook into when a custom post type is published (as in the user hits publish) and when its ...
0
votes
1answer
690 views

WordPress REST API Plugin Development - Add Custom Endpoint

I have this question on Stack Overflow but thought here might be a better place for it... I'm almost certainly doing something stupid - or rather not doing something obvious that I should have done. ...
-3
votes
0answers
11 views

Insert Cost Of Goods as seller [on hold]

I'm using woocommerce cost of goods. I want to add cost of goods field in seller dashboard. I've added cot of goods field and insert cost of goods succesfuly but when I checked in admin dashboard in ...
1
vote
1answer
34 views

External Authentication, session_tokens not destroyed on logout

There are many questions and answers on external authentication and some code prior to WordPress 4.0 need some tweaking to get them to work. For example, adding a fourth parameter to the ...
-1
votes
1answer
21 views

map urls to plugins

I'm just getting started in plugin development and written some admin functionality by referring to the codex. However, I now want to add some functionality to the front end, but using some URLS such ...
1
vote
1answer
1k views

fatal error get_page_permastruct()

I'm getting the following error Fatal error: Call to a member function get_page_permastruct() /link-template.php on line 276 when I invoke the in class constructor the wp_insert_post($new_post);. ...
0
votes
0answers
30 views

WordPress permalink for custom post type with taxonomy and post title

I have custom post type death and have a taxonomy death-area for each post. I want to set permalink as http://base/death/[death-area-name]/[post-title] But instead I am getting ...
0
votes
0answers
18 views

Developing View/Click Tracking For Custom Plugin

I have a custom plugin that we use on a private multisite network that just allows users to add forms to their site via widget/shortcode. It uses a custom post type and a lot of custom options in the ...
0
votes
1answer
15 views

Disable Auto-Expanding Menu in Wordpress Admin Menus

Right now, when I click on a menu item in the wordpress admin menu, the section that that page belongs to is automatically expanded. For instance, if I click on a link in the Settings section then ...
0
votes
2answers
24 views

Custom MySQL query to pull out Advanced Custom Fields?

I'm trying to modify the My Wish List plugin so that I can retrieve some custom fields (I'm using the Advanced Custom Fields plugin to create my custom fields in the admin end). The plugin uses the ...
2
votes
1answer
47 views

How to Add a Third Level Sub Menu to the Wordpress Admin Menu

Is there a function, action or filter that I can use to add a third level dropdown menu to the wordpress admin menu. For instance, right now in the sidebar menu their is a menu for posts and under ...
0
votes
0answers
16 views

How to Add Tabs to the Post Edit Screen

I would like to add tabs to the post edit screen in Wordpress and organize the different elements on the post edit screen in the tabs I create. Basically, what this plugin does: ...
1
vote
1answer
15 views

Change plugin main file name (that is currently in the repo)

Thought I'd ask before I give it a shot and break my plugin. Is it possible to update a plugin's main file name that IS CURRENTLY in the repo? It was the first plugin I ever made, and the file ...
0
votes
1answer
24 views

Create dynamic page content from custom Wordpress plugin page

I would like to create a custom Wordpress page from a plugin displaying content that is not from Wordpress with 2 get parameters and apply rewriting rules on it. Let's say I have a file called ...
0
votes
1answer
24 views

I can't write in my DB using $wpdb->insert

Building a plugin I'm trying to insert something in my DB but isn't works! My code is like that: global $wpdb; $table_name = $wpdb->prefix."mytable"; $wpdb->insert( $table_name, ...
1
vote
1answer
22 views

Licensing of freemium plugin

I know this has been discussed elsewhere before but still it is not clear to me. I am currently investigating how to publish a freemium plugin: The free edition is a fully functional plugin, that I ...
0
votes
1answer
586 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
votes
0answers
12 views

Lightbox Plugins Not Working

I had a responsive lightbox plugin installed on our site and it's recently stopped working, I've tried installing other plugins but it seems no lightbox plugin will work. Does anyone know what could ...