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' ),
)
);
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |