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
44 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 ...
1
vote
1answer
33 views

Order of Operation for these three hooks

What is the order of firing for these three hooks? add_filter( 'comments_array', array( $this, 'BuildCommentsArray' ), 10, 2 ); add_action( 'preprocess_comment', array( $this, 'write' ), 10, ...
0
votes
1answer
19 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 ...
0
votes
0answers
24 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 ...
-3
votes
0answers
16 views

how to change base on wordpress dropdown category

I want to change image like http://www.carauctioninc.com/ site. I have some texanomy on wordpress, I am using a plugin which allow me to add a image on every texanomy. So now i am wanted to wrap this ...
0
votes
1answer
41 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
1answer
23 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 ...
1
vote
1answer
58 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
20 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( ...
0
votes
1answer
32 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
20 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
60 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
2answers
57 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
1answer
37 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(){ ...
0
votes
3answers
40 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/ ...
0
votes
1answer
25 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 ...
0
votes
1answer
34 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 ...
1
vote
1answer
77 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 ...
0
votes
0answers
36 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
43 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 ...
0
votes
1answer
27 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', ...
0
votes
0answers
22 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 ...
4
votes
2answers
43 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
31 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
1answer
33 views

How to get all product in the woo-commerce?

I want to get all the product data in the WooCommerce (sku, name, price, stock count, availability and etc.). Can I do that using WP_Query?
0
votes
0answers
22 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
1answer
31 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: ...
1
vote
0answers
39 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
votes
1answer
27 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. ...
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
11 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 ...
0
votes
0answers
62 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 ...
0
votes
1answer
23 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
46 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'); // ...
1
vote
1answer
41 views

Wordpress php filter admin_body_class not working

I have the following function in a plugin I have built: static function filter_add_body_classes( $body_classes ) { $new_classes = array(); // Only when logged in if ( ! ...
0
votes
0answers
32 views

WordPress & iDangerous Swiper

Sorry to bother you with whats probably an easy thing: I came across a nice carousel created by iDangerous that I would like to implement into a WP theme. Do you guys have any suggestions on how to ...
0
votes
0answers
34 views

Get image url from a form

I am new to Wordpress plugin development. I have some questions related to my plugin. I want to get a image URL from a form at backend of my plugin from user and assign it to a (html img) tag src ...
0
votes
1answer
22 views

How to do searching based on keywords added in page

I have added keywords and description on my pages. I have to do searching based on those keywords in my website. I am not sure how to do it. And apart from that I also want to show keywords related to ...
0
votes
1answer
47 views

How to inject html to every page with a plugin?

I would like to write a plugin which injects specific content to every non admin page. This is my first plugin. I've figured out how can I inject content to every non admin page's head: <?php ...
0
votes
0answers
13 views

Alter Cart Contents for Specific Product Type in WooCommerce?

With this code I can alter the price for all products in the cart. add_action( 'woocommerce_before_calculate_totals', 'add_custom_price' ); function add_custom_price( $cart_object ) { ...
-1
votes
2answers
35 views

shortcode doesn't work

I made my first WP plugin, it is a contact form - here is the code: <?php /* Plugin Name: Example Contact Form Plugin Plugin URI: http://example.com Description: Simple non-bloated WordPress ...
1
vote
0answers
23 views

Sync only certain users and roles between multi-site / multi-network

I've a multi-network with this situation: A) a public wordpress site with a forum for customers B) an intranet site accessible only by users enabled I've created some roles such as: ...
0
votes
0answers
14 views

How to set unlimited expiration time for wp_generate_auth_cookie()

I am writing a authentication plugin, for this I have to set cookie that never expires. $cookie = wp_generate_auth_cookie($user->ID, $expiration, 'logged_in'); $cookie value should never expire. ...
0
votes
0answers
32 views

Reload custom plugin

I'm developing my custom plugin for my client. Its just a local plugin and don't have any intention to publish it to wordpress community. my plugin add some custom post type and when I made change ...
-1
votes
1answer
39 views

Output pure JSON wordpress

I have written a Wordpress plugin in PHP and I want to output JSON without any wordpress theme html and other boilerplate. But I do need to interact with other plugins and the WP-Settings information. ...
0
votes
1answer
24 views

About a programming language starts with <# #> [closed]

Is that a Javascript code?? The following code inside a php class file but after closing php tag start these lines and the [data] variable not defined in this class i want to trace the [data] ...
0
votes
1answer
18 views

Can I remove or edit an include() from a function with a filter?

I need to edit the output of a plugin and the part I need to change is actually a html file that is brought in using include(name-of-file.html). The function has a filter, but I am just now beginning ...
0
votes
1answer
25 views

Plugin SVN folder structure

I´m used to git, but i am new to svn. Do i need to re-create the svn folder structure (trunk, assets, tags) in my local repo, or are the files automatically "sorted into folders" when i push my plugin ...
0
votes
0answers
20 views

Custom post type only works when role has edit_posts capability

I have been trying to create a custom post type 'book'. Added capabilities when registering custom post type. All works well except I have to give user the permission 'edit_posts' when accessing my ...
0
votes
2answers
45 views

Adding Custom CSS with PHP

I am creating a WordPress plugin to help people protect their content from being copied. There are many plugins to protect content from being copied when JavaScript is on, but no plugins which protect ...