W3cubDocs

/WordPress

WP_Widget_Factory::__construct()

PHP5 constructor.

Source

File: wp-includes/class-wp-widget-factory.php

public function __construct() {
		add_action( 'widgets_init', array( $this, '_register_widgets' ), 100 );
	}

Changelog

Version Description
4.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_widget_factory/__construct