src/Register.php
private static function register_widget( $widget_class ) {
		register_widget( $widget_class );

		$callback = [ $widget_class, 'post_registration' ];
		if ( is_callable( $callback, true ) ) {
			call_user_func( $callback );
		}
	}
private static function register_widget( $widget_class ) {
		register_widget( $widget_class );

		$callback = [ $widget_class, 'post_registration' ];
		if ( is_callable( $callback, true ) ) {
			call_user_func( $callback );
		}
	}
private static function register_widget ( $ widget_class ) { register_widget ( $ widget_class ) ; $ callback = [ $ widget_class , 'post_registration' ] ; if ( is_callable ( $ callback , true ) ) { call_user_func ( $ callback ) ; } }
Register a widget and run its post_registration function.

@param string $widget_class Full class name (including namespace) of the widget.
Register a widget and run its post_registration function .