WordPress.org

Forums

Widget Settings Importer/Exporter
[resolved] Switch from 'ini' to 'widgets_init' (2 posts)

  1. metaphorcreations
    Member
    Posted 1 year ago #

    I was wondering if you could switch:

    add_action( 'init', array( 'Widget_Data', 'init' ) );

    to

    add_action( 'widgets_init', array( 'Widget_Data', 'init' ), 20 );

    The plugin is working great, but I use the WooSidebars plugin in themes and the 'init' action fires before the custom WooSidebars are registered on 'widgets_init'. I am including a modified version of this plugin in my themes to work with WooSidebars, but thought others may be registering sidebars on 'widgets_init' as well and losing this great and very useful functionality of your plugin.

    Thanks!

    http://wordpress.org/plugins/widget-settings-importexport/

  2. metaphorcreations
    Member
    Posted 1 year ago #

    I did some more testing and that didn't always resolve the issue either... so, feel free to discard my post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Widget Settings Importer/Exporter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic