protected function register_enqueue_hooks( $dependency, $context = null ) {
		$priority = $this->get_priority( $dependency );

		foreach ( [ 'wp_enqueue_scripts', 'admin_enqueue_scripts' ] as $hook ) {
			add_action( $hook, [ $this, 'enqueue' ], $priority, 1 );
		}

		$this->maybe_localize( $dependency, $context );
		$this->maybe_add_inline_script( $dependency, $context );
	}
protected function register_enqueue_hooks( $dependency, $context = null ) {
		$priority = $this->get_priority( $dependency );

		foreach ( [ 'wp_enqueue_scripts', 'admin_enqueue_scripts' ] as $hook ) {
			add_action( $hook, [ $this, 'enqueue' ], $priority, 1 );
		}

		$this->maybe_localize( $dependency, $context );
		$this->maybe_add_inline_script( $dependency, $context );
	}
protected function register_enqueue_hooks ( $ dependency , $ context = null ) { $ priority = $ this -> get_priority ( $ dependency ) ; foreach ( [ 'wp_enqueue_scripts' , 'admin_enqueue_scripts' ] as $ hook ) { add_action ( $ hook , [ $ this , 'enqueue' ] , $ priority , 1 ) ; } $ this -> maybe_localize ( $ dependency , $ context ) ; $ this -> maybe_add_inline_script ( $ dependency , $ context ) ; }
Register the enqueueing to WordPress hooks.

@since 0.2.2

@param array $dependency Configuration data of the dependency.
@param mixed $context    Optional. Context to pass to the dependencies.
Contains the type of the dependency at key
'dependency_type'.
Register the enqueueing to WordPress hooks .