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
2k views

How to exclude “uncategorized” from custom categories widget?

The code below if from my WP plugin which gives a filtered listing of categories excluding the "uncategorized" category from display. However, when the user chooses "Show Hierarchy" from the widget ...
0
votes
1answer
231 views

Problems with wierd characters and my plugin

There are special characters that can cause problems in word press, like the infamous microsoft word smart quotes. However, there are many that are captured and dealt with. My collegue and I have ...
0
votes
1answer
583 views

Get cat parameter from admin-ajax

I have a plugin that restricts the categories users can view/edit in the admin. All works fine in WordPress 3.0.1, but as I started testing 3.1 I noticed that the category filter, which is AJAX, ...
0
votes
2answers
472 views

Why does preg_replace_callback never fire in this function?

In the function below, the save_content function runs, but the doReplace does not (echo "This is the doReplace" never shows. Any ideas why? add_action('content_save_pre', 'save_content'); ...
0
votes
1answer
227 views

how to add custom fields into new & update post page?

I want to add new whole section of custom fields in admin UI of new post page edit post page Could somebody suggest any nice code example?
0
votes
2answers
3k views

How to get shortcode to work inside a foreach loop called within a shortcode?

My plugin, WP Coda Slider, uses a shortcode to get_posts and add them to the slider. If one of the posts contains shortcode the shortcode in that post will not work. $my_wpcodaslider = new ...
0
votes
2answers
370 views

Widget instance options not showing correctly

i have a setup like function form($instance) { $defaults = array( 'title' => 'Recent Products', 'number_products' => 3 ); $instance = wp_parse_args($instance, ...
0
votes
1answer
387 views

Questions about meta box: nonce and parameters available

1st question is: is a nonce required for a meta box? i read on the wordpress codex add_meta_box and they have a nonce for the meta box, i'd thought that maybe the add post form will already include a ...
0
votes
1answer
105 views

Is there a plugin that will allow a tag cloud to be created from any mysql field?

I have run into a frustrating situation in the development of my site/store. I am using the Shopp plugin and there is a disconnect between the tags in WP and the tags in the store plugin. In my case ...
0
votes
0answers
19 views

Add version query tag to all images

I want caching all images on my site and prevent the browser download the images all times, so I would like add an version query tag to all images (for example: ?v=20160505) How can I add this for ...
0
votes
0answers
13 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 ...
0
votes
1answer
22 views

Suggestions on Approach to New Plugin I'm Stuck On

I'm a newbie plugin developer, and I've had an idea for what I though would be a simple to build debut plugin, but I seem to have reached a brick wall with it and wonder if anyone can suggest some ...
0
votes
0answers
32 views

Fixing the WP Post Object for Custom Route

I'm currently in the process of building a custom plugin for a client that involves displaying front end user profiles for any "subscribers". These profiles will be populated with various user meta as ...
0
votes
0answers
9 views

Overriding search from plugin

I have some code that I would like to hook into search.php for all themes on a MultiSite network. It would be written to a plugin so when a search query is run given the conditions are met the code ...
0
votes
1answer
14 views

Multi hook deploiement

Having this : <?php class Planner_plugin{ public function __construct(){ add_shortcode('planner::display', array($this, 'display_planner')); register_activation_hook( ...
0
votes
1answer
21 views

Visual Composer custom markup for custom shortcode (vc_map)

Trying to get custom_markup to work with the Visual Composer builder for WordPress. Here's some documentation for the vc_map function ...
0
votes
0answers
29 views

Storing Unique Data on the Database

I have created a custom table on my database using the code below: function dbcreator_activate() { global $wpdb; $table_name = $wpdb->prefix . "ftbstatistics"; if( ...
0
votes
0answers
7 views

Woo-commerce: Hiding archived products from the front end when logged as admin

With Woo-commerce archived products appear on the front end of the site when a user is logged in to the WP-Admin area. Is anyone aware of way to prevent archived products from being displayed like ...
0
votes
0answers
8 views

Saving option values in array using register_settings and add_settings_field [duplicate]

I've been able to save different options as single options in the database. What I'm trying to do is to save them all in one single row, using an array. This is my code: register_setting( ...
0
votes
0answers
23 views

Tracing which wordpress php script executes specific actions

Is there any way to trace which php script in wordpress executes a specific actions ? In my case I want to trace which php file in wordpress whether a plugin script , theme script or standard ...
0
votes
0answers
24 views

The plugin generated xxx characters of unexpected output during activation

I know this question has been asked 100 times, and I've googled it and tried multiple solutions, but I'm still getting this error. I removed all the white space, tried to encode it in UTF-8 in notepad ...
0
votes
0answers
8 views

Set rules for file uploads to dynamically hide/show menu items

I am curious if anyone has a clue about this? Upload a file. If file meets certain criteria, link the file dynamically to a menu item If file is linked, the menu item will show. Until an associated ...
0
votes
0answers
16 views

Passing Numbers & Letters in Query Strings

I have been fumbling around with this for 45 minutes now, and can't seem to get anything working 100% as I need it to. I am developing a plugin to allow multiple query strings (1 for "level" and 1 ...
0
votes
1answer
50 views

Foreach in get_post_types to apply a different filter per post type

I have a class in my plugin with the following function: protected function get_post_types($output='names') { if (! is_array($post_types = get_post_types(array( 'show_ui' => true ), $output))) ...
0
votes
0answers
5 views

Option tree wordpress options plugin not save key values

I use this plugin for save values for my theme , actually in localhost in my server works fine , but when i install in production server not works The problem it´s with the keys , if i build a key ...
0
votes
1answer
25 views

Calling a save function from a “submit” button

I am trying to call a function to save changes from a submit button, but I am not accustomed to PHP programming, as I have just started. I tried Googling around a bit, but didn't find anything too ...
0
votes
0answers
13 views

Access submenu without giving access to menu page

I have created a custom post type 'book' and added few submenu's to it, which are also custom post types eg (novel, science, history etc.). I added seperate capabilities to all of the custom post ...
0
votes
0answers
23 views

How to integrate Visual Composer into a custom menu page? [on hold]

I've created a custom menu page using add_menu_page and on that page I'm using wp_editor to add the default WordPress editor: add_action('admin_menu', function () { add_menu_page( 'Custom ...
0
votes
0answers
13 views

plugin settings - multiple upload buttons in sections: how does sanitize_callback work?

my plugin' settings page includes a series of sections, each one contains an upload button: // create the input with the *exact* setting's name function myplugin_upload_cb($args) { echo "<input ...
0
votes
0answers
16 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 ...
0
votes
1answer
33 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
26 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 ...
0
votes
1answer
50 views

Programmatically Create Menu Link For WooCommerce Memberships [closed]

I'm using WooCommerce + Memberships and need to add a direct link to the Memberships "Member Area" in my primary nav. Due to the fact that the Memberships "Member Area" section contains the id of the ...
0
votes
0answers
6 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
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 ...
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 ...
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 ...
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
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
38 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
1answer
26 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
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, ...
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 ...
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, ...
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
64 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
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 ...