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

Putting a resized image into media library with wp_get_image_editor(

I'm using wp_get_image_editor() to resize and save an image that is being uploaded to the Media Library. $image = wp_get_image_editor( $newattachment_url ); if ( ! is_wp_error( $image ) ) { ...
0
votes
1answer
34 views

Theme independent plugin by using default page template

I'm trying to build a plugin that can be used within every theme. It uses a custom post type and i used the action hook to change the content, so i could use extra meta fields and such. Also explained ...
0
votes
0answers
34 views

get selected Option value in Dropdown selection

I want to store some Custom User Meta in Edit User Form. i but i cant get it working :/ Here is the following code add_action('show_user_profile', 'add_extra_berufe'); add_action('...
3
votes
1answer
36 views

Set number of article per number of page

I'm making a timeline using this awesome free theme. As you can see in this theme, it's a timeline separated by "Page". We have "Page 1" with 5 articles, "Page 2" with 5 articles, etc ... I changed ...
1
vote
2answers
40 views

Install and load additional plugins when running unit tests

I want to write unit tests for a plugin. I have used WP-CLI to scaffold the test WordPress instance and can successfully run tests. The plugin I'm writing unit tests for is a site specific plugin ...
0
votes
2answers
28 views

API to filter new user registration $POST data?

Is there an add_filter where you can see/modify all the $POST data submitted for a new user registration before the user is created? Thanks
0
votes
1answer
24 views

Hook for plugin to show content for certain urls

New to WP development. I want my plugin to dynamically show content for certain urls, for example, when the user navigates to /my-plugin or /my-plugin/key, my plugin would provide the content. The ...
0
votes
0answers
27 views

Grabbing data from Meta Box

I am using someone elses code for uploading files to a custom post type, and I need to be able to get the URL back from it. In the editor, the value is the URL so that isn't an issue, but I need to ...
1
vote
0answers
60 views

Using ReactJS in the WordPress admin for plugin development

I have some WordPress plugin projects planned which would benefit greatly from using ReactJS in the WordPress admin. I'm pretty sure I can get ReactJS working in the admin but the sticking point is ...
1
vote
2answers
47 views

Update problem with update_option() in combination with register_setting()

Intro I have a settings page which includes a setting with a more complicated callback function to save. Save data To save the data I use the register_setting() function with a custom sanitize ...
-4
votes
1answer
43 views

How to pass data from one page to another in plugin

I have created a filter plugin in which I have created two shortcodes. The filter should show in two pages. I have created two pages in WordPress from the admin panel. I have included one short code ...
1
vote
1answer
52 views

Does flush_rewrite_rules() remove all rules added by other plugins as well as mine?

I am developing a plugin, and am using add_rewrite_rule followed by flush_rewrite_rules during plugin activation. On plugin deactivation I am using just flush_rewrite_rules to remove the rule that I ...
3
votes
1answer
67 views

Add rewrite rule to permalink structure

I have a Custom Structure setup for posts in Settings > Permalinks as: /%category%/%post_id%-%postname% This works great for most of my posts, but there is one category that I want to remove the ...
0
votes
2answers
34 views

wordpress plugin require_once file - can't user wordpress functions

I read a lot about the require_once in stackoverflow. But no anwser solved my problem. I've a plugin with two files. dmd_main.php //main file dmd_second.php //some WP functions In my main file I'...
0
votes
1answer
26 views

Wordpress Plugin: OSCommerce images not displaying in front end

The below code is wordpress custom plugin code. I am trying the code from below link: http://code.tutsplus.com/tutorials/create-a-custom-wordpress-plugin-from-scratch--net-2668 <?php if($...
0
votes
0answers
27 views

Can't get get_delete_post_link to work correctly

I am using WP_Query to to list all of a certain CPT for each user. Everything is being displayed correctly, but for some reason get_delete_post_link isn't returning anything. Does anyone see what ...
1
vote
2answers
109 views

how to set default value for checkbox in wordpress

I am facing a problem to set default value for the checkbox field in WordPress. I have a checkbox input field (metabox) in a custom post. I want the checkbox to be checked by default. and if user ...
5
votes
1answer
36 views

Customizing subject in comment notification e-mails

How do you customize the following code in functions.php in order to have "New comment" as subject in comment notification e-mails instead of the default WordPress subject? function ...
5
votes
2answers
63 views

Overide get_template_part( 'partials/post', 'sidebar' ); with a plugin

I am working on a site for a client who has a theme built for them by a different developer. They have asked me to make some changes to the site, and I'd like to put all of my changes into a plugin as ...
0
votes
0answers
75 views

How do I use TCPDF to make a PDF Generator plugin?

I need to make a portion of a Wordpress site able to be converted into PDFs, using a specific already-made design. I have the template built out with TCPDF (because I need customizable page breaks), ...
0
votes
0answers
14 views

How to create nested metabox

I am creating a plugin and in that i want to create a nested repeatable meta box. I have trying create it but not getting any success. Bellow is the code i am using. It works correctly for single ...
1
vote
2answers
44 views

OEmbed from Pinterest

I'm looking for a way to show a certain pinterest pinboard in a post. I've found in the WordPress.com Documentation that you can simply post your pinboards URL there. This is not possible on a ...
0
votes
1answer
46 views

Change Page title when Pagingation the posts

I just changed the title tag in the header.php like this <title><?php if ( $paged < 2 ) { } else { echo (' Page '); echo ($paged);} ?></title> Just want to change the title ...
3
votes
1answer
23 views

What function to hook for changes made in status and visibility of a post

I have a function to run every time a post is published or updated in anyway. Right now I am doing function myFunction(){ //Do Something } add_filter('publish_post','myFunction'); add_filter('...
1
vote
1answer
38 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 ...
0
votes
1answer
40 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 action="http://www.foo.com/wp-content/mu-plugins/FormCode/...
0
votes
0answers
24 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.
4
votes
0answers
34 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 ...
1
vote
1answer
38 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
59 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 ...
0
votes
0answers
14 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 ...
0
votes
0answers
16 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" style="...
2
votes
2answers
44 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
1answer
53 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 doesn'...
0
votes
0answers
26 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
22 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 ...
0
votes
0answers
44 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 ...
1
vote
2answers
27 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
3answers
50 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 ...
0
votes
0answers
44 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 ...
0
votes
0answers
29 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 ...
2
votes
1answer
22 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
44 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, ...
0
votes
0answers
19 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
3answers
40 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 ...
-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 ...
0
votes
0answers
42 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 http://base/death/...
0
votes
0answers
20 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
32 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
25 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 ...