Title: Creating new plugin
Last modified: August 19, 2016

---

# Creating new plugin

 *  [bimal4monto](https://wordpress.org/support/users/bimal4monto/)
 * (@bimal4monto)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/creating-new-plugin/)
 * Hello
 * I am new in WordPress and started a new plugin development.
 * I am starting to create a new plugin that give admin ability to change widget
   order on individual pages. So admin can set different ordered widget on different
   pages.
 * I think I will get user’s input in Custom Fields.
 * The problem is I want to hook my function at just before widget load so I can
   get order and change according to current page’s data of ordering.
    I need someone’s
   help to how to do this?
 * Thanks

Viewing 1 replies (of 1 total)

 *  [Hax](https://wordpress.org/support/users/hax/)
 * (@hax)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/creating-new-plugin/#post-1541930)
 * if you already read the plugin api section here are a fiew hooks that you can
   try
 *     ```
       add_filters('sidebars_widgets', "your_function_name_here");
       add_action( 'widgets_init', "your_function_name_here" );
       ```
   
 * and all the functions and filters related to widgets are in “wp-includes/widgets.
   php”

Viewing 1 replies (of 1 total)

The topic ‘Creating new plugin’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Hax](https://wordpress.org/support/users/hax/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/creating-new-plugin/#post-1541930)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
