LLMS_Nav_Menus::enqueue_block_editor_assets()

Add LifterLMS nav menu item data to block editor.


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.nav.menus.php

	public function enqueue_block_editor_assets() {
		$links = array();

		foreach ( $this->get_nav_items() as $key => $data ) {
			$links[ $key ] = $data['label'];
		}

		wp_localize_script(
			'llms-navigation-link-editor-script',
			'llmsNavMenuItems',
			$links
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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