But it would be nice if there was a way to supply this in the arguments supplied to the widget constructor:
class Lightbox_Widget extends WP_Widget {
function __construct() {
parent::__construct(
'lightbox',
__( 'Lightbox', 'lightbox-widget' ),
array(
'description' => __( 'Displays a button which opens a lightbox to show the supplied content.', 'lightbox-widget' ),
'customizer_support' => true,
)
);
...
Right now the method is:
But it would be nice if there was a way to supply this in the arguments supplied to the widget constructor:
See also comment on wordpress-dev by Nacin.