Do WordPress plugins suport multisite site?

All properly written plugins work on multisite too. You should still test each plugin separately and in combination with others on a development installation. Keep in mind, the wordpress.org plugin repository is just hosting many plugins; there is no quality control – read the code before you install anything. Use the plugin Log Deprecated Notices … Read more

How to get a custom page through plugin?

You can use wp_insert_post for creating the page. <?php $content=”<Sign up form content>”; wp_insert_post(array( ‘post_title’ => ‘My page’, ‘post_content’ => $content, ‘post_type’ => ‘page’, //VERY IMPORTANT ‘post_status’ => ‘publish/draft’ )); Check it.

Extend a plugin to include a widget option

A widget is a PHP object that echoes string data to STDOUT when its widget() method is called. — WordPress Widgets API To create the widget you have to extend the WP_Widget class with your widget class. You use the class name in the register_widget function. class Foo_Widget extends WP_Widget { //Class methods here } … Read more

Developing plugin, where to place action hooks etc?

You do it like in your first example // Shortcodes.php file function myplugin_shortcode( $atts ) { if ( !empty ($atts) ) { foreach ( $atts as $key => &$val ) { $val = html_entity_decode($val); } } myplugin_display_items( $atts ); } // Register shortcodes add_shortcode( ‘output-items’, ‘myplugin_shortcode’);