• 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)
  • 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.