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

How gzip compression still happening?

I am using Ubuntu 14.04.4 LTS,Apache/2.4.7 and PHP 5.5.9. I installed Wordpress 4.4.2 in my machine. When I run my site in localhost, I noticed that js/css are compressed in gzip format. I didn't ...
4
votes
2answers
121 views

Avoiding plugin name collisions with WP updater

I have a client who has a WordPress site that uses a custom plugin written for them by another developer. Recently, they ran the WordPress updater and one of the updates clobbered that custom plugin ...
0
votes
1answer
111 views

Woocommerce change shipping method by hook

What I would like to do is to have a condition to pick which shipping method is used. For orders with total cost < 100 the shipping method should be 'regular' and for orders with total cost > 100 ...
0
votes
0answers
59 views

WP add_rewrite_endpoint - custom post types destroys permalink URL match

I'm trying to implement AMP-versions to Wordpress posts with a custom plugin. The problem I'm having is that we use a bunch of different post types. They all have their own permalink structure. For ...
1
vote
1answer
44 views

Where does WordPress register default scripts like jQuery?

I'm figuring out the ins and outs of WordPress. I know that WordPress sets some default filters and actions in /wp-includes/default-filters.php, but where does it register its scripts like jQuery? We ...
2
votes
2answers
544 views

Get image URL from media library in input

On wp-admin/post.php?post=447&action=edit for example I have a link and an input. The link appears as follows: <a href="#" class="button insert-media add_media" data-editor="tj_image_url" &...
0
votes
1answer
125 views

Use plupload to upload images and save them to custom folder and database table

I'm building a plugin and I need to upload images and save them to a separate folder from the default wp media folder and to a custom database table. I managed to do both, but for every uploaded ...
0
votes
0answers
14 views

restrict_manage_posts takes from edit.php to edit-comment.php

I am trying to add another filter options on pages screen with following code. When I click on the filter button it takes me to edit-comments.php page. Screenshot: 1) http://snag.gy/VmOhD.jpg 2) ...
0
votes
1answer
45 views

Using OOP inside a Plugin - Is it allowed?

I have pre-written Objects that do such things like file checking the MIME type, then a main upload object but neither of which use the Database. So I am just curious to whether I could intergrate ...
1
vote
1answer
27 views

Is It Always a Best Practice to Decouple the Frontend from the Admin Area When Developing a WordPress Application?

Is it always a best practice to decouple the admin area from the frontend portion in a WordPress application? Are there any instances when one might want to use the admin area/screen as the ...
1
vote
2answers
68 views

Custom Post Type: Upload Multiple Images

So I'm making this Property Listing theme for a client of mine, and on the Properties Custom Post Type (CPT) which I have created I need to add a meta box that allows him to upload multiple pictures - ...
0
votes
0answers
26 views

Update count value based on user visit

I'm working for a custom plugin for getting user count. That plugin will show up user visit count in front end based on date/week/month/year. Here i got the count value for d / w / m / y but now i ...
0
votes
1answer
45 views

How to submit/upload data to database and in specific folder?

I am trying to make video plugin. Want to submit data to move the file in a folder which is in the plugin_name folder. To submit/upload I am trying the 'plugin_dir_path()' function. And it is not ...
0
votes
1answer
32 views

Add predefined values to custom post plugin

I have already created a custom post plugin. I need to add predefined text/values, when creating new custom post within this plugin. Is it possible to handle these predefined text/values in my ...
0
votes
1answer
97 views

Using AJAX in FrontEnd with Wordpress Plugin Boilerplate (wppb.io)

I'm trying to do a tag box similar to that of the backend, but for the frontend. I'm using AJAX to get tag suggestions as the user types in the input field. I've used AJAX in Wordpress in the past ...
0
votes
3answers
48 views

Plugin base URL

In a question that is related to, but not the same as, How to link to images in my plugin regardless of the plugin folder's name plugin-folder/plugin-main-file.php plugin-folder/images/ ...
12
votes
3answers
1k views

Conditionally enqueue a widget's script/stylesheet in HEAD (only when present on page!)

I've been trying to load scripts and styles for a WordPress widget with the following conditions... The scripts MUST load in the HEAD (else they break). The scripts must ONLY load when the widget ...
1
vote
1answer
117 views

AJAX success response is not working but it's saving my changes

I'm a beginner in jQuery-Ajax so please bear with me. My Ajax response does not seem to load but my changes are being saved. but gives me this error on admin-ajax.php "call_user_func() expects ...
0
votes
0answers
22 views

Why is error shown twice? (how to apply menuitem to menu correctly?)

Starting to create a plugin that adds content and hooks that content into a menu (in this case below I started to add a search-functionality to hook into menu just for testing) if( !class_exists('...
1
vote
2answers
268 views

Can wp_list_comments output into variable?

Is there any way how to output wp_list_comments() into a variable? Something like $output = wp_list_comments(array('reverse_top_level' => false ), $comments); I am writing a plugin and it would ...
0
votes
2answers
872 views

Ajax +wordpress onClick link redirect to new page and create html content

i have two pages in my wordpress plugin index.php charts.php in index.php i have some content and some link.. <a onclick="show_trend()" >Trend</a> while clicking this link ,i have ...
0
votes
1answer
32 views

Can plugin automatically update if i hide the update notification?

I'm trying to remove the plugin update functionality from specific plugins. I have searched about it and find a good answer. According to the answer below function actually hiding the update ...
0
votes
1answer
65 views

Minimum PHP Required for Wordpress

All those Pro's in wordpress I need your suggestions. PHP is a very vast language and it can't be mastered in days. Infact it is a life learning process. I know basic PHP such as DB creation and few ...
1
vote
1answer
64 views

How to find error in my code when the error message is pointing to WP core file?

While testing a plugin of mine with 4.5 RC of WordPress, after turning on debug in wp-config.php, I noticed an error showing up in a core WP file Notice: Trying to get property of non-object in /wp-...
0
votes
1answer
65 views

global $post inside plugin query messes up every new post page in wp-admin

I have a very strange problem that I am trying to troubleshoot: I have a query (to build an array) that I run on a custom post type inside my plugin. It looks like this: function makePointerQuery(){ ...
1
vote
4answers
2k views

How to link to images in my plugin regardless of the plugin folder's name

What is the correct method to refer to images from within your plugin code, so that no matter what the folder is named, they resolve correctly? I had an issue where a user downloaded my plugin twice, ...
0
votes
1answer
35 views

Validate Custom Post Type fields

I'm developing a plugin, in which the administrator has the ability to add and remove ZIP codes on the backend. I found that the best way to do this is by creating a custom post type named zip_code ...
1
vote
1answer
257 views

How to add tab which is visible only in admin side of product in woocommerce? [closed]

I am new in wordpress development. I want to do add settings in a product page in a new tab. How to I add settings code That I tried to add Tab //add product tab link in admin add_action(...
0
votes
1answer
36 views

Creating an empty page programatically

I would like to programatically create an empty page, let me explain what i mean. So i created a plugin that automatically creates a new page with a simple javacript redirect function in it, this ...
0
votes
2answers
2k views

using wp_footer hook in a plugin

I'm using the wp_footer hook into the plugin and it doesn't work, but when I copy the code to the "functions.php" file of the active theme it does work, what is the possible problem in this situation ?...
0
votes
0answers
94 views

Save plugin settings to a custom array and database table

First of all, please bear with my ignorance on the topic. I'm super new to WP Plugin development, and have been struggling with it for some time now. I'm developing a simple Wordpress plugin (well, ...
1
vote
1answer
34 views

PowerPress mobile media player

I am using the MediaElement media player for PowerPress, everything is working fine. The one thing I noticed is on mobile...affecting the podcast showing first. If you go to: http://joshrodg.com/...
0
votes
1answer
29 views

WP Cron being triggered but not working as expected

I have created a WP cron job, my code for the cron job is shown below: public function run_import(){ if ( isset($_POST["run_import"])) { add_action( 'import_execution_event_test', ...
1
vote
1answer
93 views

SMS registration and login [closed]

I want change default wordpress login/email/passwords registration to sms/otp (where sms will be the login (for example) and otp is a password). As well as restore passwords will be by sms only. Does ...
4
votes
2answers
49 views

Building a scalable Wordpress favouriting plugin - one serialised meta value array or many meta records

I am trying to build a simple Wordpress favourite post plugin that is scalable and could handle 1000s or 10000s of users or more. There are several different approaches that I have seen in other ...
0
votes
1answer
33 views

Why Worpdress doesn't create table in database?

Primarily this is the only code in my main plugin page. It should create table in the database while I am activating it. But, it is not working at all. Plugin activating successfully. Please, help me ...
0
votes
0answers
23 views

About plugin security

I'm developping a couple of simple plugins for specific use, and want to do it right. I've read multiple pages about plugin security, including those. Now, considering that my plugins have for ...
0
votes
0answers
23 views

Plugin Modifications

I have downloaded a plugin form the WordPress site and i need it for my needs I have added a custom metabox and a Check box to the WordPress post page function save_custom_meta_box($post_id, $post, $...
1
vote
0answers
49 views

Custom post listing page layout of custom post type

What is the best way to customise the standard wordpress custom post listing layout. To be specific, I am trying to add a subheading just below the Lessons / Create New Lesson button but before All (0)...
0
votes
1answer
31 views

OOP plugin not working

I'm developing a custom plugin OOP based. The plugin shows up in the plugins page and it can be activated without displaying any kind of errors. But none of the functions inside seems to be working. ...
10
votes
2answers
3k views

dbDelta not creating tables

I went through a lot of threads, codex page and tried messing with a lot of things but my code doesn't seem to be creating the tables. And I am not able to figure out where I am going wrong. I checked ...
0
votes
0answers
20 views

update our develop wordpress plugin version

How does a plugin update and wordpress update works? And what will be the its effect if for example I modified the codes of a plugin and then after some time, I will update it with the latest update ...
0
votes
0answers
12 views

How to resolve required libraries for a wordpress plugin [duplicate]

I am writing a wordpress plugin which requires php5-sqlite and php5-curl packages to functioning properly. But if the user's wordpress server doesn't have this packages installed, the plugin ...
3
votes
2answers
5k 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
123 views

Display form submit success message

I have created a user profile form on my website to allow users to edit their user details on the front-end. Below is the code im using which works and updates their details, however once they have ...
1
vote
0answers
274 views

unzip a folder on specific location and delete the zip file

After the lots of search. I am deciding to post my question here. Basically i want to upload a zip file in my wordpress site from my admin panel. And also extract this file to specific location with ...
8
votes
3answers
4k views

How to make a plugin require another plugin?

I'm building a plugin that adds extra functionality to a main plugin. Ideally in the plugins administration screen, the "activate" link should be disabled and an inline note should be added that tells ...
0
votes
1answer
24 views

Internationalizing Plugin

I'm gonna deploy my first plugin but the _e() and __() functions seem don't work. In my comments header: Text Domain: add-to-post-footer Domain Path: /languages I created .po and .mo files with ...
0
votes
3answers
47 views

Plugin Options Array Set to Undefined

I want to set a number of plugin options set to blank if they are not defined so I can avoid the PHP notices. What is a better way of writing this code? $options = get_option('plugin_options'); // ...
9
votes
1answer
3k views

Adding Widget form fields dynamically

I am trying to add form field to a WordPress widget dynamically. So if the user want to add another date to an event they can click a button to get more fields. The question is: How do save newly ...