Add hooks while registering all widget instances of this widget class.
File: wp-includes/widgets/class-wp-widget-media.php
$control_opts ); } /** * Add hooks while registering all widget instances of this widget class. * * @since 4.8.0 * * @param integer $number Optional. The unique order number of this widget instance * compared to other instances of the same class. Default -1. */ public function _register_one( $number = -1 ) { parent::_register_one( $number ); if ( $this->registered ) { return;
Version | Description |
---|---|
4.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_widget_media/_register