title: Pass arguments to WP_Widget construct via register_widget action hook
body: <p>Is it possible to pass additional arguments into a custom Wordpress widget when using the register_widget() function?
  register_widget only excepts one argument - the target class name.</p>
  
  <pre><code>add_action( 'widgets_init', function() {
      register_widget("ID_Projects_Widget"); 
  } );
  
  class ID_Projects_Widget extends WP_Widget {
      public function __construct() {
          parent::__construct([...])
      }
  }
  </code></pre>
  
  <p>Fairly extensive searching to date has drawn a blank...</p>
  
  <p><a href="https://wordpress.org/ideas/topic/passing-arguments-to-widget" rel="nofollow">https://wordpress.org/ideas/topic/passing-arguments-to-widget</a> </p>
  
  <p><a href="https://wordpress.org/ideas/topic/allow-ability-to-pass-parameters-when-registering-widgets" rel="nofollow">https://wordpress.org/ideas/topic/allow-ability-to-pass-parameters-when-registering-widgets</a></p>
  
  <p>The logic behind the question?</p>
  
  <p>We want to pass in an array containing the post_type name, ACF 'options' page id, etc etc that was registered in a previous class… the widget will only be used to offer user choices… </p>
  
  <p>We really want to avoid using more and more GLOBALS - if that is possible…</p>
  
  <p>Do we have our logic backwards? Does the widget come before the egg?</p>