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

Getting timestamp of activation plugin time

I want to save the time that the user activates a plugin. So I need to set the value within the function that the registration hook fires: function ucme_reg_func () { //------------other ...
2
votes
5answers
764 views

How to debug WordPress correctly?

I'm using a few plugins and UpThemes framework on my new website and if I turn on Wp Debug I can see that there are a few errors related to Deprecated functions (but website is working). What I would ...
1
vote
5answers
2k views

WP_Query returns no results

I'm using wp_query to create a custom query that retrieves search results but it is returning 0 results. Here is the code: $query = 's=the&posts_per_page=5&paged=1'; $custom_query = new ...
0
votes
1answer
16 views

Howto: Use Custom Post Types as Submenu Items in Admin

In a plugin, i've created 3 Custom Post Types, for example: Dogs Cats Goldfish I've also created a "Pets" Top-level menu page using add_menu_pagewherein I'd like to add the 3 CPTs as submenu ...
0
votes
0answers
26 views

How to make a plugin theme-wide?

I have written a working plugin and meets the criteria. Although I've encountered an issue, I've noticed that it's only usable on the theme's functions.php that I write the function and specify the ...
2
votes
1answer
1k 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(); ...
-3
votes
0answers
15 views

Add on for plugin written completely in javascript

I'm writing a plugin with Backbone.js. I plan to distribute it under freemium model. But how'll I build addons for it? Because the only PHP code I have is the AJAX handlers.
0
votes
0answers
18 views

How to avoid hardcoded text in a custom page template?

I'm developing a company Website using Wordpress 4. This website needs some special, customized pages - with forms and GET and POST and a lot of stuff, so a lot of PHP code. Now, a CMS' main purpose ...
0
votes
1answer
557 views

Uploaded image not appearing in custom post type

I am writing a plugin which should allow users to create a custom post type called reseller and attach an image. The image is being uploaded to the uploads folder and appears in the media library with ...
0
votes
0answers
15 views

Problem with user specific data being cached [on hold]

I have just installed w3 total cache and I'm having some problems. I have a shortcode on a page that uses the wpdb to query information stored in a mysql database. It uses a query that contains ...
-1
votes
0answers
6 views

Kento Post Views counter doesn`t work [on hold]

Kento Post Views counter for unique view doesn`t work well. I have Kento Post Views counter plugin in wordpress, but not working well. Sometime it appears double stats, the stats aren`t appearing ...
0
votes
0answers
10 views

Enqueue script with API_KEY as data attribute [duplicate]

I'm currently trying to create a plugin that connect with an online service who required API_KEY to be passed in the script tag, and I'm searching a way to do it the "Wordpress" way, is it possible ? ...
1
vote
2answers
31 views

Fatal error: Class not found in

I am working on a plugin for 'hooking' an extra payment provider into a checkout system. I have a class gtpCheckoutData in my function.php which calculates the prices. In my plugin I want to use ...
2
votes
1answer
188 views

Display update notification messages like 'What's New'

I am about to push out a new update for my plugin. I've used a few functions only available to WordPress 3.8, which is fine because I want to support the latest version. How do I display a message to ...
0
votes
0answers
8 views

Does adding nonce in save_post hook for every metabox really improve security? [duplicate]

I see a lot of example [1] that introduce the checking of nonce in the save_post callback of a metabox. e.g. function smashing_save_post_class_meta( $post_id, $post ) { /* Verify the nonce before ...
-1
votes
0answers
14 views

The cheapest way of receiving multiple small payments [closed]

I am looking for the cheapest and most convenient solution for one of the websites. Let's assume the website is providing paid weather service. There are 3 locations for which one can retreive weather ...
0
votes
1answer
24 views

Best way to hook a custom url?

Let say I've a custom page with slug created "/products", I want user will be able to POST to a form with url "/products/create" and allow us to render some JSON output. The "/products/create" page ...
2
votes
0answers
28 views

add_rewrite_rule, plugin activation and plugin deactivation

I see a lot of example showing to call add_rewrite_rule in your init hook, e.g. function add_my_custom_rewrite() { add_rewrite_rule(... } add_action('init', 'add_my_custom_rewrite'); and in ...
0
votes
2answers
20 views

Adding Dropbox dropin js using wp_enqueue_script

I want to add a new Dropbox Drop In Chooser button to my site. To include the code in a simple page you use <script type = "text/javascript" src = ...
13
votes
4answers
7k views

Post meta vs separate database tables

When developing plugins that requires data storage, what's the pros and cons of using one method or another ? The explanation given in the codex is not detailed: Before jumping in with a whole ...
0
votes
1answer
35 views

shopping cart plugin development

I'm developing a new shopping cart plugin for WordPress. At a point, how to save orders, I am stuck, sort of confused. Actually I am not sure whether I should save order through options api or create ...
0
votes
1answer
588 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
12 views

Allow users to label or classify or group posts accoring to their own criteria

Is it possible to allow individual users to group posts according to their own personal classifications. Say one user wanted to class groups by read and unread ... or 'to read' or 'shared' etc. ...
0
votes
1answer
1k views

How to change post status in hook?

I have similar problem as described in How to trap "Publish" button to check for meta box validation? Answer there is to hook into save_post and change post type. How can I do it? I try to ...
2
votes
1answer
399 views

Save HTML formatted data to post meta using add_post_meta()

Array ( [post] => Array ( [jw_objective] => Exposure to e<b>nd to end development</b> of various applications; right from requirement analysis to system ...
0
votes
0answers
11 views

User autonomous tags for custom post types

Is it possible to create a taxonomy ( or other ) system such that each user on a WordPress system could have an autonomous tag setup which they could use to order custom posts. For instance: There ...
2
votes
1answer
26 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
0answers
24 views

How to Use WordPress Color Picker API in Custom Post Type Metabox

I have a Custom Post Type called "Banner" which has a custom Meta box with two advanced fields "Title" (text Field) and "Color" (color Picker). Can you please let me know how to use the WP Color ...
0
votes
2answers
35 views

Can a standalone app be made to work as a Wordpress plugin?

I just developed a tool for web site owners. This works as a standalone app with its own user and routes system and other custom elements. Now it seems Wordpress is getting more and more popular and ...
0
votes
0answers
16 views

Execute PHP code of a plugin markup file

I am creating a plugin which imports html markup. I would like to execute some php on those markup files before or after it gets imported. Is there anyway I can do this? Right now if I add PHP to the ...
0
votes
2answers
2k views

How to append new form elements in “Add New” form of Users in Wordpress admin panel?

I'm developing a WordPress plugin and I want to append some extra form fields in add new form of Users section inside admin panel without editing core files. Can somebody help me in achieving this.
0
votes
1answer
377 views

wp_insert_user keeps echoing values

This is bugging the heck out of me. Essentially I've narrowed the issue down to one line of code: $user_id = wp_insert_user ($userdata); From what I can tell nothing should be echoed here, but I ...
0
votes
0answers
16 views

Unable to find BP_Group_Extention

When I try to extend Buddypress' groups, I get false from the function-call class_exists( 'BP_Group_Extension' ). The function is called during my plugin initiation, and I am able to do other ...
0
votes
1answer
18 views

What happens when you create/edit a menu

I need to know this for a plugin I'm developing: What happens when a user creates a menu, add/remove menu items in the admin, what updates are made in the database, what tables/columns are affected?
0
votes
1answer
22 views

How to hide page links from theme menu

I'm working on a plugin, I programatically create some pages in posts table, the links appear in the theme menu(front end), I don't want some of these page links to appear, how do I do this?
8
votes
3answers
2k views

Should Plugin Folders Include a Blank index.php File?

WordPress itself, in the wp-content folder, includes an empty PHP file which looks like this. <?php // Silence is golden. ?> Should plugins include an empty file like this as well to stop ...
0
votes
0answers
12 views

How to use in my plugin the Autocomplete for users and sites field?

i am building plugin for my multisite, so i need to be able to select some blog from the blogs list, and then get the blog id to use this id in another function. the best solution will be using ...
0
votes
1answer
26 views

Get post thumbnail in WP_Query

I wrote an Ajax suggest plugin and I want to get the post thumbnail, but don't know how. This is my plugin code: $s = trim( stripslashes( $_GET['q'] ) ); $query_args = apply_filters( ...
1
vote
2answers
211 views

WordPress 4.0 Cookie Authentication to avoid nonce error when publishing a post and page

Cookies are now tied to internal sessions in WordPress 4.0. This means plugins using basic cookie authentication will have trouble because a token is required for publishing a post or page (as well ...
0
votes
0answers
17 views

Hide shortcodes “code” when using the “editor” the same as wordpress do with “gallery”

i have question, how to hide the "shortcode code" when using the "editor" the same as wordpress do with "gallery"? my clients hate to see shortcodes as "code". And the truth, not only him, but a lot ...
1
vote
1answer
531 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
1answer
673 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 ...
1
vote
1answer
52 views

Is there an action like 'after_register_custom_post_type'?

I'm writing a small plugin for Visual Composer. I need to list all custom post types but I don't know when to call the query to fetch all post types. My plugin gets initialized by after_setup_theme, ...
0
votes
0answers
23 views

How to create team for users?

i trying to create team to manage all the users in more effective way in multisite. i want to create some temas like "support" "super admins" and etc... to each team we need to have option to select ...
0
votes
0answers
18 views

How to manage different admin notices for different blogs?

i am trying to create plugin that can manage different admin notices or any other information for different blogs. for example: i have in my multisite network with 50 blogs. i want to select some ...
0
votes
1answer
376 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 ...
2
votes
2answers
388 views

multiple files in wordpress plugin

i'm trying to write a plugin with multi files, i'm sure i did it before without a problem but now i have the problem in the subject. in the main plugin file i included a file name - ydp-includes.php, ...
1
vote
1answer
131 views

Scheduled events disappear from events queue

I'm having an issue where events that I have scheduled work for a while then just stop. After looking at the event queue I see that the scheduled events are no longer in the queue. If I deactivate ...
-1
votes
0answers
15 views

Backend enhanced user search

I'm working on a WordPress website that has user database with important user information, so this user information need to searched thoroughly. as shown in the picture above I have a custom ...
20
votes
1answer
3k views

Is it possible to reuse wp.media.editor Modal for dialogs other than media

To expand: I'd like to utilize the same Modal code/appearance ( as used in wp.media.Modal, wp.media.FocusManager ) to open a modal of my own custom dialog, not the Media Editor. In the past, I've ...