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

“Rendering of admin template [path to template] failed”

I've got a php script that is called when the user is editing the category. However, although the page renders fine for the most part, at the point where the image upload button should appear, I'm ...
11
votes
3answers
974 views

Unit testing for plugin development

I need to apply unit testing for one of my plugins. I recently re designed it into classes, so unit testing should be easier to apply now. What are some effective strategies to unit test my plugin? I ...
0
votes
1answer
206 views

Can I attach a plugin via my add_filter callback contents?

I'm trying to add my plugin interface to the Category Editor. I've easily attached it to the post and page editor using the add_meta_box() filter, but there does not appear to be an add_meta_box hook ...
0
votes
3answers
109 views

Codex Version Focus on Production or Nightly?

The function get_users_of_blog() is to be deprecated in WP 3.1.0 but the current production release is 3.0.5. Does it make since to have the documentation reflect a nightly change when the ...
0
votes
2answers
115 views

Is there any way to pass messages from a script to a redirect target in a hidden fashion?

I'm trying to pass error messages or regular messages from a page that processes a form post request to the page it then redirects to (after processing). Since i want to get rid of the POST request ...
0
votes
1answer
3k views

add_meta_box() to Category Edit Screen?

I've got a plugin that attaches itself to both the post and page editors to read and write to the post_content object. I'd like to also attach my plugin to the category manager edit screen. In the ...
3
votes
2answers
3k views

Is There a WordPress Hook to Filter the Edit Posts View?

I want to be able to customize the WordPress edit posts screen to filter based on a custom field (or whatever). Unfortunately I'm not sure what filter or hook to use here, and instead of opening the ...
4
votes
7answers
3k views

is_plugin_active function doesn't exist

I'm using WordPress 3.0.5 and have tested with 3.1rc4. In the main PHP file of my plugin, when I try to call is_plugin_active I get Call to undefined function is_plugin_active(). I can call add_action ...
31
votes
1answer
3k views

What's the preferred method of writing AJAX-enabled plugins?

I'm wondering what the preferred method is for dealing with AJAX calls. Should one use the same plugin php file to process the POST or a separate one? Which is cleaner or safer?
0
votes
1answer
582 views

Does admin_print_scripts-$hook_suffix work for nested paths to individual files?

Can the hook admin_print_scripts-$hook_suffix be used for a hook which has been created like $hookname = get_plugin_page_hookname("my-quiz/lib/admin/$code_page", '' );? .. where $code_page is ...
0
votes
1answer
448 views

get_the_tags with separator control?

I'm building a function in theme options to give the site owner more control over the post's "Tags" collection that I display at the bottom of each post page. Specifically, whether to add anchor text ...
0
votes
3answers
2k views

How to find out if option exists but is empty?

I am using something like this on one of my plugins: $myOption_def = "myOption Default Value"; $myOption = get_option( 'myOption' ) ? get_option( 'myOption' ) : $myOption_def; That works fine, but ...
0
votes
1answer
174 views

best way to run a php script away from the template?

I'm looking for some inspiration on the best way to run a php script away from the template. I know that the wordpress core files won't have loaded, so I am wondering what workgflow you follow when ...
1
vote
2answers
1k views

Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page

(Moderator's note: Original title was "Getting error: You do not have sufficient permissions to access this page. Trying to build custom plugin") I'm trying to write my own custom WordPress plugin, ...
0
votes
1answer
286 views

get_categories exclusion issues

In the script below i'm trying to pass category IDs to exclude, however, the category list still includes children of these categories and i can't figure what's wrong. Can anyone see what I could be ...
3
votes
2answers
175 views

How to test a WordPress plugin through the upgrade automatically feature

Last week I had released a version of a WordPress plugin that works if the user was doing a fresh install, however if they already had the plugin and upgraded it using the WordPress upgrade ...
1
vote
1answer
158 views

Replacing Scripts in Admin Load_Scripts

I'm currently creating a plugin that requires me to overwrite one of the Wordpress admin panel javascript files. I have recreated the file with the changes, I need to know how to replace the existing ...
2
votes
1answer
881 views

How to show custom message once on plugin activation?

I know by watching the akismet plugin source how to show a custom message on the plugins page, but I want my message to appear only once after my plugin is activated. How could i do this?
1
vote
2answers
1k views

How do I determine if a category exists by ID?

I know I can get a categories ID by calling get_cat_ID('category-slug'), however, what is the method to call to determine if a category exists by ID when you don't know the slug? In other words, I ...
0
votes
3answers
438 views

Custom Post Type to override theme's CSS & HTML from Plugins Dir?

I have a plugin that creates a custom post type called Squeeze Pages. It has various short codes users can enter to make a squeeze page but I'm not sure how I can go about making the squeeze pages ...
1
vote
5answers
561 views

How to store a medium amount of options?

I develop a plugin that has a not too small number of settings. So far, there has been a fixed number of them, so I store them in a Wordpress option. Now I consider letting users define (an arbitrary ...
0
votes
1answer
1k views

How can I add function calls to my plugin's options.php default submit routine?

I'm combining two of my plugins into one. I'd like to make the activation routine of the second plugin a checkbox selection in the settings panel of the new plugin. However, I'm unsure how to execute ...
1
vote
2answers
4k views

Show dialog box in TinyMCE plugin and use WordPress php functions in it

I'm adding a TinyMCE button to my plugin. So far, I've been able to add the button and call my editor_plugin.js file and it's command. Not an easy mission btw... I want this button to show a Dialog ...
1
vote
1answer
691 views

Can I dynamically create a link to my plugin settings/options page from my plugin description?

Currently, in my plugin description, I'm hardcoding... To customize options <a href="options-general.php?page=my-plugin-admin.php">click here</a> Is there a dynamic method to call the ...
1
vote
3answers
491 views

Good tools for locating hooks in a wordpress page/admin interface/blog post?

I've recently started using the Hikari Hooks plugin for Wordpress as it seems to allow you to get a good idea of what do_actions are being called on the page, so that you can easily find out where ...
1
vote
2answers
306 views

How to get all of the activate_plugin action parameters?

I am trying to hook into activate_plugin. I know that activate_plugin has 1 required param and 2 optional ones. I am trying to acquire all 3. Here's my setup: // create plugin settings menu ...
0
votes
3answers
98 views

Amazon.com intergration with WordPress?

Wanted to know if there was any documentation or plugins that allowed a site to pull prices and other information from Amazon.com on DVD's and other products. I'm creating a plugin that stores ...
0
votes
1answer
565 views

$wp_filesystem returns NULL. What are the dependencies?

I need to obtain a reference to the $wp_filesystem object. In the test below, the var_dump($wp_filesystem) returns NULL. What additional files are required in order to properly set up $wp_filesystem? ...
0
votes
1answer
150 views

What should I pass for $needed_dirs when calling _unzip_file_pclzip (aka PclZip)?

I'm trying to create a fallback method when ZipArchive is not present. I'm seeking to use the _unzip_file_pclzip() function contained in wp-admin/includes/file.php However, I'm not sure what is ...
4
votes
3answers
6k views

add_action hook for completely new post?

publish_post Runs when a post is published, or if it is edited and its status is "published". Action function arguments: post ID. -Plugin API Documentation I've added the publish_post ...
1
vote
1answer
132 views

Theme Install using a Custom Repository

The standard WP Themes Install is available in Appearance --> Theme Install nav-tab. There is a way to add a new nav-tab and browsing into a Custom Themes Repository? Thanx
0
votes
1answer
282 views

Adding fields to category manager. Does a method exist to get the link to the category edit screen?

This code is working fine, just want to make sure I'm ok with hardcoding the href to the category edit screen with... ...
0
votes
3answers
872 views

Anyone using unzip_file successfully? It uploads the zip but doesn't extract it!

When I call the WordPress unzip_file() function below, instead of actually extracting the zip, it merely moves it into the target folder. When I trace $file and $to from includes/file.php I get: ...
0
votes
1answer
224 views

Error passing post_content to function

The purpose of this function is to simply wrap the first occurrence of the keyword in bold tags. I'm getting an error on the line marked below. Warning: DOMDocument::loadHTML() ...
1
vote
1answer
1k views

Filter Categories widget to allow custom sorting?

Man, I can't seem to ever get done with enhancements to WordPress categories. I hope there's more work done on core category options in the future. Especially with the emergence of site theming and ...
1
vote
1answer
130 views

Plugin Upgrade Strategy

Reading register_activation_hook() told me that in wordpress 3.1, this will only work for every plugin activation, not plugin upgrade. What I want to know is, what's the best plugin upgrade strategy? ...
3
votes
2answers
4k views

Get post ID from the Create post/page admin interface?

I am adding a meta box in the create post/page interface and I want to get the ID of the post being edited/created so I can dynamically display the value of the input field. From the wordpress codex ...
0
votes
1answer
521 views

Custom Path for a Plugin

i developed a plugin (the backend at least) and now i want to add a frontpage to my blog. the url should look something like this http://www.mywordpressblogalsoroot.com/mypluginname/param1/param2 ...
2
votes
3answers
4k views

What is the recommended way to create plugin administration forms?

I have seen and been using the following technique for adding php scripts to my plugin for handling custom forms in a wordpress plugin. from the quizzin plugin: $code_pages = ...
0
votes
1answer
919 views

wp_schedule_event() set daily, but processed every second

Reading wp_schedule_event() documentation got me code something like this: add_action('cr_paid_link_manager_generate_expiring_link_email_action','cr_paid_link_manager_generate_expiring_link_email'); ...
1
vote
2answers
301 views

How can I view all WP generated thumbnails in Media Manager?

When WP creates thumbnails from the original uploaded image, they are hidden from view inside the Media Manager listing. Can they be made visible, via some filter or action so that you can selectively ...
1
vote
4answers
512 views

URLs of plugin resources?

I am trying to add in a script and css file for my plugin into the admin header. Is there a function similar to get_bloginfo('url') that I could use to reference the files correctly without having to ...
0
votes
3answers
394 views

Adding admin menus to wordpress

I am trying to add a menu box to Pages > Pages or Pages > Add New, basically whenever they access a page, be it to edit an existing page or add a new one, I would like to add a menu box under ...
3
votes
3answers
2k views

Is there a hook for when you switch themes?

I created a plugin but I just came across a bug that I don't really know how to solve. When you activate my plugin, it creates a file in the active theme directory and when you deactivate it, it ...
37
votes
6answers
6k views

framework for plugin/theme options panel? [closed]

I found that the longest part of a plugin or theme development is creating the options panel, at least in my case. So i like to know what's your take on that. Do you use a ready made framework or ...
11
votes
7answers
30k views

How to include PHP files in plugins the correct way

My problem is when on the main plugin file i include a php file something like this: include(WP_PLUGIN_URL . '/wordpress-group-buying/ipn/paypal-ipn.php'); //or include_once(WP_PLUGIN_URL . ...
1
vote
1answer
366 views

Ad rotator script for Adsense/CPA rotations. Ideas? Existing Solutions?

My theme handles Adsense inclusion automatically for the end user. I'm looking to add a feature that allows them to rotate in CPA ads in place of the adsense ads (on a set frequency by percentage). ...
2
votes
2answers
2k views

Custom Post Type Statuses

I'm (still) working on a custom post type plugin for my workplace and came across an easier method of marking Visitors (my custom post type) as either "Here" (aka checked-in) or "Not Here" (not ...
6
votes
4answers
153 views

Is it necessary to bump a plug-in's version if you're just updating the “Tested up to” attribute?

I've got a number of plug-in's hosted on the wordpress.org svn server ... with the immenent release of 3.1, I would like to update the "Tested up to" meta data. There will be no functional changes to ...
2
votes
1answer
650 views

How can I add a field to make link nofollow to the WordPress Link Inspector Window?

The default WordPress insert/edit link inspector window has options for URL, Target, Title and Class. I would like to add a checkbox labeled "Make link nofollow" that, when checked, adds ...