# elasticpress/4.4.1/assets/js/admin.js

ElasticPress, version 4.4.1. 27 lines.

- Page: https://pluginprobe.com/plugins/elasticpress/4.4.1/code/assets/js/admin.js
- Raw: https://pluginprobe.com/plugins/elasticpress/4.4.1/raw/assets/js/admin.js
- Modified: 2022-08-31T13:36:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elasticpress/4.4.1/code/assets/js/admin.js#L10-L20`.

```javascript
/**
 * WordPress dependencies.
 */
import domReady from '@wordpress/dom-ready';

/**
 * Initialize.
 *
 * @returns {void}
 */
const init = () => {
	/**
	 * If '.wp-header-end' is found, append the notices after it.
	 */
	const headerEnd = document.getElementById('ep-wp-header-end');
	const notices = document.querySelectorAll('div.update-nag');

	for (const notice of notices) {
		headerEnd.after(notice);
	}
};

/**
 * Initialize.
 */
domReady(init);

```
