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)

3
votes
2answers
397 views

Sync my svn repositories

I use my own svn repositories for all my development. I am looking for an easy way to keep the svn repository wordpress provides for my plugin synced up with my own internal repository. The desired ...
1
vote
1answer
202 views

Replace default Blogroll Links with Social Media Links

I'm creating a script that will remove the default "Blogroll" links in Links manager and replace them with an arbitrary listing of links, each with a custom css style name. It my case, I'll be ...
0
votes
2answers
858 views

How to add pages to custom menus on the fly [duplicate]

Possible Duplicate: Can I add pages to my custom menu via script? My theme has a custom menu called "Custom Header Menu" and i've got a plugin that sets up site defaults and creates my ...
0
votes
1answer
91 views

Script to replace default blogroll with links to my social media URLs

I've got a plugin that I ship with my theme whose function is to jumpstart the process of launching site so that its optimized for the theme. It has all my default pages, plugins, settings, etc... ...
0
votes
1answer
593 views

Script to remove all inactive widgets?

I've been working with widgets a lot lately and have amassed a ton of widgets in the inactive widgets collection. Can someone share a script or plugin that will remove all inactive widgets from the ...
0
votes
1answer
498 views

Paypal Framework

I'm trying to set up a paypal-subscription-based website, where people can sign up if they pay a subscription fee trough Paypal. I'm pretty new to this Paypal IPN system, but I found this plugin ...
13
votes
3answers
427 views

What are the common security flaws I need to look for? [closed]

As a wannabe WP plugin developper, what are the main security flaws/holes I should look for? I'm about to create a new plugin with a configuration panel (ie input fields and stuff). What should I be ...
7
votes
2answers
5k views

List all sidebar names?

I'm listing all sidebars like that: global $wp_registered_sidebars; echo '<pre>'; print_r($wp_registered_sidebars); echo '</pre>' So I'm getting something like: Array ( ...
1
vote
2answers
588 views

What could cause my plugin's options/settings page not to load?

I'm having an issue with one site in which my plugin is installed. The "settings" page will not load. When I click on "settings", it loads the settings page but the page is blank after the "Upgrade to ...
0
votes
1answer
81 views

modify buddpress adminbar only in admin pages

I have modified the buddpress admin bar by creating the following plugin which adds a simple text link to the bar: function bp_adminbar_currentsite_menu() { global $bp; ?> <li> <!-- ...
0
votes
2answers
477 views

Moving/dragging a metabox removes TinyMCE's content

I added a TinyMCE editor to my plugin settings page, but once I move (drag) the metabox, editor's content get lost. (the TinyMCE editor is completely not editable until refresh) Here is how I added ...
3
votes
1answer
7k views

How can a plugin create a page/form in the front end?

How can a plugin create a page/form in the front end thats not listed in pages (if possible). it should only be accessed through a direct link.
2
votes
2answers
144 views

Example of uninstaller routine to remove all custom theme options from wp_options

All of my theme's custom options are preceeded with "mytheme_" + option. For example, mytheme_color1, mytheme_color2, mytheme_body_font_color, etc... I'd like to create a plugin that uninstalls all ...
1
vote
1answer
184 views

Fully automated theme install and activation via a plugin

I've managed to get my "semi noob proof" site installer plugin 98% complete, but I'm having a slight issue with the theme activation. The plugin is able to copy the theme into the themes directory ...
1
vote
1answer
224 views

Can I add pages to my custom menu via script?

My theme has a custom menu assignment... function my_register_my_menus() { register_nav_menus( array('header-menu' => __( 'Custom Header Menu' ) ) ); } ...and I'm creating an "installer" ...
1
vote
2answers
1k views

How to load a new template page according to a particular URL?

I want to load some of the pages(not wordpress page, a template file other than wordpress's default template file) according to the url came on the address bar. for instance, I have page in my ...
0
votes
3answers
178 views

How to specify widget order or css name via script?

I've got a routine (see below) that creates and inserts several widgets into the active theme's sidebars. However, I need more control over either the order/index the are assigned (ie, one of my ...
0
votes
2answers
1k views

Add a panel to edit post

I would like create a plug in that adds a panel of options to edit post page like the one added by All in One Seo but i cant find any good tutorial of any information about what is the correct action ...
0
votes
1answer
365 views

How do you filter get_media_items by mime type in a custom media upload tab?

I've gotten as far as creating my new tab and getting it to show up and I've taken a copy of the gallery screen (I'm making an audio plugin with a playlist feature). The list of media items shows up ...
3
votes
2answers
3k views

Dashboard like meta boxes in my plugin - how to save their position and open/closed state?

I am trying to mimic the dashboard meta boxes UI in my WP plugin - the small metaboxes. I have already styled them and also the drag & drop feature works as I loaded the following script and ...
0
votes
1answer
203 views

Activate theme via plugin script?

I have a plugin that installs a folder of themes and other plugins into the WP site during plugin activation. I would like to place script into the plugin which will activate one of the themes that ...
0
votes
4answers
1k views

TEMPLATEPATH without the theme name? No THEMEPATH constant?

Is there a way to get a path to the themes directory without the current theme in the path? ie, in a standard WP install, I would want a reference to: ...
1
vote
2answers
635 views

How to get an image transferred via FTP or script to appear in Media Manager?

I've got a plugin that transfers some files over to the uploads folder of the site in which the plugin is installed. It works fine, however, the images are not appearing in the Media Manager. I ...
2
votes
1answer
610 views

Plugin Localization

i've just built my first plugin for wp, and even if it's not a great "code poetry" ;) it works as it should. It's a plugin that transform the default wp gallery using the GalleryView 3.0 jquery plugin ...
0
votes
1answer
116 views

Deactivate plugin on registration

I'd like to check if the server is running PHP5.2. To do this, I use a activation-hook which will be registered with "register_activation_hook". Instead of just returning a warning, i'd like to ...
3
votes
1answer
417 views

How Does Wordpress Uninclude/Deactivate A Plugin?

Wordpress uses the Observer Pattern for its plugin system and operates on the premise of checking if a plugin is activated, scanning the plugins directory and storing everything in an array in the ...
3
votes
2answers
262 views

What is the best way to output plugin result in certain url

Knowing that wordpress doesn't follow MVC pattern. What is the best way in worpress to output plugin's result in a certain url. lets say I would like to show "hello world" in main area under ...
0
votes
1answer
173 views

Limiting Amount of Posts in a Custom Post Type again

I've been trying to limit the amount of posts a user can create in a specific custom post type, and I had some help from Bainternet by checking out his plugin. I read over that and then came up with ...
4
votes
3answers
4k views

Which hook should be used to add an action containing a redirect?

I want to build a plugin that grabs certain url params from the query string to build a new query string for the same page. I'm following the excellent the Professional WordPress Plugin Development ...
4
votes
2answers
1k views

Where can I find a schema of wordpress plugin core architecture?

There are plenty of articles which explain how to create a wordpress plugin. I'm not looking for that, I'm looking for a schema of the core architecture of a wordpress plugin (an UML class diagram and ...
4
votes
2answers
4k views

how to create child WordPress plugin

I like to create child plugin.. Explanation :- I have one parent plugin named X. This will work independently (like other existing plugins). Now I decided to add some extra features to that plugin ...
0
votes
1answer
1k views

Limit Amount of Pages users can create in Custom Post Types

Is there a way to limit how many pages a user can make inside a custom post type? This would be pretty effective for commercial WP plugins and I am making one, but have come across a little problem ...
1
vote
3answers
233 views

Does WordPress's HTTP API use any caching?

I'm working on a plugin to will retrieve data from a remote server and display it on the Dashboard. To do this, I'll be using the WordPress HTTP API but I'm not seeing any information on the HTTP API ...
6
votes
3answers
5k views

Getting Path To Uploaded Attachment Image After Upload

After you have uploaded an attachment in Wordpress using the media upload screen, is there a hook or filter I can run after the image has been uploaded where I can get the path to the uploaded image ...
4
votes
3answers
3k views

Creating a default Custom Post Template that a Theme can override

I'm in the midst of building a Wordpress Plugin that adds a custom post type, for which I'd like to include a default template to display. Essentially, this is an event management plugin, and the ...
0
votes
2answers
366 views

get author of published post

I am using the publish_post action to run some checks on a user after their post is published: $author_ID = ???? add_action('publish_post', 'rhb_check_current_user', 10, $author_ID); How can I get ...
0
votes
1answer
85 views

Create a Plugin to Download Files from Web to Server

I'm writing a plugin and want to have a feature where, in the Admin area, the user will click on a link and it will download a theme to the /themes directory on their server. How would I do this? ...
0
votes
2answers
596 views

Auto-Update Plugin Creating .tmp directory, not overwriting old version

I'm using this library to auto-update my plugin, but it's only extracting the new plugin files into a .tmp directory, while the old plugin files stay where they are. Can anybody help me fix this to ...
0
votes
1answer
332 views

How can I develop a plugin that generates a page dynamically

I want to develop a plugin that generates a page and embeds the page link in pages menu in the client part at the time of plugin activation. Please help me with this.
2
votes
1answer
3k views

Is there a need to do apply_filter('widget_title', $instance['title']) or any other 'widget_xxx' filters?

I am reading the book Professional Wordpress, and have code like $title = apply_filters('widget_title', $instance['title']); $name = apply_filters('widget_name', $instance['name']); ... I wonder if ...
0
votes
1answer
577 views

How can I get Wordpress to save comments in markdown format?

I love markdown, and I have the Wordpress markdown-for-wordpress-and-bbpress parsing markdown in my posts and comments. However, I've noticed that Wordpress saves the comments rendered in html ...
4
votes
4answers
1k views

How to auto-upgrade my plugin?

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.
1
vote
1answer
159 views

Is it possible to install a theme via a plugin?

I'd like to simplify the installation and default settings of my theme, by creating a plugin that installs it (versus the traditional "Appearance > Install Themes" routine. Once installed, I want to ...
0
votes
1answer
635 views

My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?

OK, I can create the code to add custom widgets to the widgets manager. Check. My next challenge is to, in the same plugin, during activation, check for the existence of my theme, and if active, ...
1
vote
1answer
561 views

Is disabling test_form in wp_handle_upload a security concern?

I'm writing a plugin that modifies the default behavior when uploading a file for a post or to the media library. I'm setting $overrides in wp_handle_upload() with a custom $unique_filename_callback. ...
4
votes
2answers
883 views

Wordpress as College Application System (Embark)

Anyone knows of any plugin or anyone has been using WordPress to serve as a College Application system similar to those by Embark? If not, I'm looking for idea of using current plugins to accomplish ...
1
vote
2answers
514 views

How long should it take for a plugin to fully load into the WordPress.org plugin repository?

I updated my plugin, Export to Text, to 1.3 and committed it to the WordPress SVN repository yesterday. The 1.3 download button was available pretty quickly, but a day later the read me text is not ...
2
votes
2answers
758 views

Check if on Custom Post Type for TinyMCE buttons

I'm adding TinyMCE buttons to my plugin and they're working, but I only want these buttons to show up for a certain custom post type. I followed this tutorial if it helps: ...
0
votes
1answer
32 views

Is there a (preferable built-in) way to check what custom queries are used in a theme?

I've build a theme using custom post-types with queries like $my_custom_post_type_query = new WP_Query( array( 'my_arg' => 'value' )); Now I'm writing a plugin where I need to do something like ...
0
votes
2answers
1k views

template_redirect not working, apparently for no reason

Well I made a plugin that uses template_redirect for the custom post type squeezepages and it works all fine and dandy, but I copied the exact same code, put it in a new plugin, activated it (with a ...