Astra_Notices::enqueue_scripts()

Enqueue Scripts.


Description


Return

(void)


Source

File: inc/lib/astra-notices/class-astra-notices.php

		public function enqueue_scripts() {
			wp_register_script( 'astra-notices', self::get_url() . 'notices.js', array( 'jquery' ), self::$version, true );
			wp_localize_script(
				'astra-notices',
				'astraNotices',
				array(
					'_notice_nonce' => wp_create_nonce( 'astra-notices' ),
				)
			);
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.