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

How To Update Premium Plugins I made [duplicate]

Possible Duplicate: Updates for a private plugin? I am trying to find a way to update my premium plugins for WP. My current needs are that: the system I use must allow for multiple ...
0
votes
1answer
461 views

Get user logged in status from within a plugin. $current_user not defined

I'm writing a plugin which adds a class that creates an endpoint for third party software to make API calls to and check if the current user is logged in. Here's a stripped down version of what I'm ...
0
votes
2answers
171 views

how do you prevent showing a particular category on the admin dashboard for specific user roles?

I'd like to prevent the "Featured" category from appearing for certain user roles. To be specific, I want only the admins and editors to be able to see and thus select or unselect that category. ...
0
votes
3answers
260 views

random code at the end of file after plugin upload

I uploaded to a WordPress site (3.3.1) a plugin that works perfectly in my other sites (3.3.1 and 3.4), but when try to activate it I get Fatal Error. When I go to check the plugin's main file content ...
3
votes
1answer
177 views

Using preg_replace to clean widget output HTML

I am working on a wordpress site that uses a plugin / sidebar widget. The issue I am experiencing is that the widget generates HTML that is not valid, an example of this is below... <p> ...
11
votes
2answers
653 views

Is There a Plugin Life Cycle Documentation?

Is there some documentation somewhere that explains what is the life cycle of the plugins? I'm starting a new plugin with OOP style, and I just found out that my main class is being instanciated a ...
0
votes
2answers
147 views

What is the Timeline for the Active Version Pie Chart in the Repository?

When going through your own plugin details and checking the active version downloads. It's helpful to see which version that webmasters prefer, but I see no details on the subject on WordPress (and on ...
1
vote
1answer
216 views

Can a Plugin Override New User Default Role Type

I'm making a plugin that creates user accounts. Is there a way I can create new users that get the role that I (the plugin developer) tell them to, as opposed to making them all the default new user ...
0
votes
2answers
276 views

Apply Filters Causing a 500 Internal Server Error

I have a custom post type and need to display it in a certain way. I would like other posts to display as normal. When I tried to use the following code to accomplish this, I get a 500 Internal Server ...
0
votes
1answer
88 views

Adding columns to core tables

I was just wondering if there is a compelling reason to not let a plugin add columns to a core WordPress database table, such as wp_term_taxonomy. I could always create a separate table and join it to ...
5
votes
1answer
591 views

Wordpress URL Rewrite not working

I'm trying to create a custom url rewrite for my wordpress plugin. function insert_plugin_rewrite_rule($rules) { global $wp, $wp_rewrite; $wp->add_query_var('update_slug'); $ret = ...
7
votes
3answers
3k views

How do I change the author of a custom post type?

I have made a custom post type and need to be able to create posts and assign them to authors. It is easy to do this with posts as you can go to the bulk edit screen and immediately change the author. ...
1
vote
0answers
124 views

add_settings_field Data not passing to Options Page Like it should

I am creating an options page with some fields. As you can see from the code below, I only have one field registered. However, when I try to send that field to my options page, it does not display the ...
-2
votes
1answer
35 views

How to dispaly post informations (such as titles) in an admin plugin menu page?

I'm trying to develop a WP plugin to show post(or page) related information (such as show all post title in a list) in an admin menu page. I tried to use "The Loop", but it seems like "The Loop" ...
1
vote
1answer
100 views

Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?

In WordPress, are there any supported 'script plugins', Classes, and/or a WordPress function that will allow a plugin to use to export/import its own data from the database to a txt/json file? A way ...
2
votes
2answers
1k views

How to use filter hook 'post_updated_messages' in coherence with action hook 'save_post'

I am trying to send out e-mail, SMS and IM notifications to group members of this WordPress website, whenever a WordPress page in their user group has been published/updated. I figured using the ...
0
votes
1answer
66 views

How to make custom plugin run on demand?

I'm trying to make a plugin which would run either by itself at a specific time or when it is triggered manually(that is, a particular function of the plugin is triggered). I'm not understanding how ...
4
votes
1answer
199 views

Which method is best to enqueue scripts

I'm currently authoring the development of a plugin for wordpress, and I'm having trouble figuring out which would be the best way to add scripts to the plugin. I'm in the process of adding more ...
2
votes
1answer
107 views

Sensible location for IPN Callback script

I'm working on a plugin which will involve accepting PayPal Instant Payment Notifications. IPNs are a web-hook which gets called when a payment is processed. Currently I have a script to handle the ...
1
vote
1answer
131 views

Get name and email of current unregistered user, who has recently submitted name and email in comment form?

From within a WordPress plugin, is there any way to get the name and email of the current user, when s/he is not logged in, but has recently submitted a comment, and specified name and email in the ...
1
vote
2answers
374 views

How to debug a unit test for a WordPress plugin, which uses wordpress-test?

I'm attempting to debug a unit test for a WordPress plugin. The unit test uses wordpress-test (and PHPUnit). However, wordpress-test: calls system(php ...) the new external PHP process attempts to ...
2
votes
1answer
2k views

JS / JQuery form validation in backend admin menus

I'm building a plugin to manage course information and am struggling to put form validation on the new meta boxes I've added. Has anyone a good way of putting JS / JQuery validation on the admin ...
4
votes
2answers
1k views

Edit or Remove Plugin .htaccess Using The Admin Panel

I am looking for a way to edit or reset the .htaccess file for a wordpress site without access to the filesystem, working only with the wp-admin web interface and/or plugins* (see below for the back ...
0
votes
1answer
438 views

Combo/Drop down box on plugin settings page that allows additional options to be added

I'm not sure what this is called and have not had much success searching for it yet. In a plugin settings page, I would like a 'combo box' or 'drop down box' that also includes the ability to add an ...
9
votes
2answers
3k views

Looking for WordPress System Diagrams

I am looking for WordPress chart/diagram system design. I found only the template hierarchy diagram, but it's only part of the system. source: ...
1
vote
2answers
4k views

How to put placeholder text in the main post input area?

I'm making a course plugin for a university in England. I'm looking to put some default placeholder text in the main post content area, on the admin side. Its the rich text editor I want it to go ...
1
vote
1answer
862 views

correct way to call javascript into hook function

function node_wp($post_ID) { global $post; $post_title = get_the_title( $post_ID ); $post_url = get_permalink( $post_ID ); $json = array( 'title_post' => $post_title, ...
0
votes
1answer
132 views

Pass results of custom query to loop - when writing a plugin

This is similar to this question: How to change a custom query into a standard loop? - but I want to do this while writing a plugin, not writing a theme. I need to be able to run a custom query ...
-1
votes
1answer
58 views

is there a way I can add or remove some plugin options?

I don't know if my question is clear. I want to add and remove some options in the circled section of the image. thanks.
3
votes
2answers
89 views

How do I make specific plugin functionality apply to different sites in a network?

I have a site specific plugin that I've written for the main site in my multisite network. Now I realize that the shortcodes that are in the plugin are also useful on the sub-sites, however the ...
0
votes
2answers
440 views

Get category id when SEO URL is turned on

<?php /* Plugin Name: Members */ function myFilter2($query) { if ($query->is_category) { $currently_listing_categories = ...
0
votes
1answer
242 views

Is there an action_filter hook to add content before the post title?

I am looking to add content before the post title but not included in the markup of the title itself so adding to the_title doesn't seem to be the right hook for this. Thanks
2
votes
1answer
668 views

How to set a fall back template for a custom post type in a plugin?

My custom plugin creates a custom post type, and I want to theme my own "single-my_custom_cpt.php" file. However, I want to store it in my plugin folder, and allow that it be over-written in the ...
0
votes
2answers
443 views

How to append text to title of Custom Post Type post (without affecting all titles on page)?

This question 'How to correctly get post type in a the_title filter' is exactly what I'm trying to achieve. I have set a filter as below but it affects all titles on the page (in the menu, sidebar ...
0
votes
2answers
4k views

Set first image (external) as featured image / thumbnail

I've read through a lot of code snippets now and it seems like wether I'm to stupid or there is no solution for this. I have a setup where some information for a product is loaded via amazon API if I ...
5
votes
2answers
2k views

How do I create links at the top of WP_List_table?

I am trying to create links like the ones in the post tab. See Image Below. I created my WP_List_table but I am not sure how to create those links or how to get them to show a different db query. I ...
1
vote
1answer
328 views

Preview Changes button missing on custom post type page since updating to 3.4

Any idea why when I'm on post.php of my custom post type page I no longer see the Preview Changes button? I have checked on an old installation and it shows on WordPress version 3.3 but not 3.4. The ...
3
votes
1answer
404 views

Problem with sorting entries in a plugin's admin interface table

I'm developing a WordPress plugin that will display a publicly accessible noticeboard on a page. I've been asked to add the means to delete existing posts from the noticeboard using the WordPress ...
0
votes
1answer
255 views

CSS not being applied using wp_enqueue_style

I am trying to load my style sheets in my plugin but they are not being called, the javascript files however, are being loaded. <?php /** Plugin Name: Plugin URI: Description: Version: Author: ...
2
votes
1answer
2k views

How do I register a stylesheet inside a WordPress widget?

I'm developing a WordPress widget following Dave Clements tutorial. It works well. Now I want to add some styles to it. I want the styles to be in an extra css file which will be loaded during ...
8
votes
2answers
5k views

How to Remove Certain Screen Options and Meta Boxes from add/edit post type?

Now, when you add or edit a particular post within your desired post type, there are more screen options as well. Although, these Screen Options are showing/hiding meta boxes. I would like to be able ...
1
vote
2answers
474 views

Script won't load via plugin class

I'm not sure why this script is not loading or producing any load errors via Firebug. Here is my plugin script: class AV_Slideshow{ function __construct(){ $this->hooks(); } function ...
1
vote
1answer
870 views

How to add HTML / Form to an Admin Bar Menu

I'd like to add a custom form to the admin bar in Wordpress. is there a way to accomplish this? So far all of the documentation seems to only allow the addition of simple text links.
0
votes
1answer
81 views

Checking url from plugin

I'm trying to change the login url from wp-login.php to simply 'login'. I'd been looking through another plugins source to find ways of doing it. Some of the applicable parts that I've got so far: ...
3
votes
1answer
211 views

Removing rules from .htaccess

I'm writing a small plugin that needs to write to .htaccess a simple non_wp_rule and i am doing it like this: function ci_flush_rules() { global $wp_rewrite; $wp_rewrite->flush_rules(); } ...
4
votes
1answer
94 views

“Donate to this plugin” for WordPress.org Plugin Authors

I recently saw a link titled "Donate to this plugin >" link on a WordPress theme (and then I did!). How is this added to a plugin's page on wordpress.org? Here's a screenshot:
1
vote
2answers
116 views

Plugin development: How many plugin and WordPress version combinations to support?

I'm developing a plugin (my first plugin), and I wonder how to think about [supporting and testing various plugin version and WordPress version combinations]. For example, if I develop a plugin, and ...
6
votes
2answers
3k views

Get List of Registered Meta Boxes and Removing Them

Is there a function for getting a list of registered Meta Boxes and removing them? I see there is a method for adding, and removing. http://codex.wordpress.org/Function_Reference/remove_meta_box ...
0
votes
1answer
1k views

wp_enqueue_scripts in a plugin's class

I'm trying to enqueue jQuery UI in a plugin under a class method. I have this so far: class AV_Slider { function slider_load_js(){ wp_register_script('jquery-ui-core', ...
0
votes
1answer
42 views

I am trying to make a page in the admin section similar to the appearance of the Profile page for users

I am working on a plugin and would like to know the correct way I go about creating a page that will look like the users page (image attached at the buttom) The fields will be different and will add ...