WordPress at a glance
function is not described

WP_Widget_Media::_register_one() public WP 4.8.0

Add hooks while registering all widget instances of this widget class.

{} It's a method of the class: WP_Widget_Media{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Widget_Media = new WP_Widget_Media();
$WP_Widget_Media->_register_one( $number );
$number(int)
The unique order number of this widget instance compared to other instances of the same class.
Default: -1

Changelog

Since 4.8.0 Introduced.

Code of WP_Widget_Media::_register_one() WP 5.7.2

<?php
public function _register_one( $number = -1 ) {
	parent::_register_one( $number );
	if ( $this->registered ) {
		return;
	}
	$this->registered = true;

	// Note that the widgets component in the customizer will also do
	// the 'admin_print_scripts-widgets.php' action in WP_Customize_Widgets::print_scripts().
	add_action( 'admin_print_scripts-widgets.php', array( $this, 'enqueue_admin_scripts' ) );

	if ( $this->is_preview() ) {
		add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_preview_scripts' ) );
	}

	// Note that the widgets component in the customizer will also do
	// the 'admin_footer-widgets.php' action in WP_Customize_Widgets::print_footer_scripts().
	add_action( 'admin_footer-widgets.php', array( $this, 'render_control_template_scripts' ) );

	add_filter( 'display_media_states', array( $this, 'display_media_state' ), 10, 2 );
}