How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?
I’ve been playing around with code snippets which add meta data to admin searches.
I’ve been playing around with code snippets which add meta data to admin searches.
I’m working on a plugin in which I do the following for autoloading classes:
Using WordPress Settings API tutorial I created a new custom menu and corresponding sub menus. Each of my menus have a page of its own. I used add_menu_page() and add_submenu_page() for that. (Here is the Complete Code)
How do I have my plugin pop up with that New version available. Upgrade Automatically dialog to appear when my plugin has a new version? Specifically for plugins not hosted on the WP.org repository.
I’d like to develop a plugin that allows me to have custom user pages. I really like the way the author archive template handles the URL: /author/username. I don’t want to rewrite the author_base as I’d like to keep that functionality in place untouched.
I am trying to add in a script and css file for my plugin into the admin header.
I’m developing a couple of open-source plugins and a theme (all part of a “suite”) that all use the same third party PHP library. I’m wondering what is the best way to include it in WordPress. Here are some thoughts:
The plugin I am working on contains shortcodes with forms on them. Upon form submission (POST), I do some database work, and then planned on redirecting to another page after the db work is complete. When I attempt this, I get the “Headers Already Sent” warning. Within the shortcode function, how do I call my redirect sooner than get_headers? Do I need to use some separate callback function?
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 and add_filter. What should I check/change to fix this?
Is there a recommended way to log (failed) cron actions from your plugin? For example, I have a plugin that synchronizes with an external service every hour. I want to log how much was changed, but also when the synchronization failed. What would you recommend here? A new database table? The Log Deprecated Notices plugin does this with a custom post type, but this might be too much overhead? I believe WordPress does not come with a standard logging package?