LLMS_Nav_Menus::__construct()

Constructor


Description Description


Source Source

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

	public function __construct() {

		// filter menu items on frontend to add real URLs to menu items
		add_filter( 'wp_nav_menu_objects', array( $this, 'filter_nav_items' ) );

		// add meta box to the Appearance -> Menus screen on admin panel
		add_action( 'load-nav-menus.php', array( $this, 'add_metabox' ) );

		// add LifterLMS menu item type section to customizer
		add_filter( 'customize_nav_menu_available_item_types', array( $this, 'customize_add_type' ) );

		// add LifterLMS menu items links to the customizer
		add_filter( 'customize_nav_menu_available_items', array( $this, 'customize_add_items' ), 10, 4 );

		// add active classes for nav items for catalog pages
		add_filter( 'wp_nav_menu_objects', array( $this, 'menu_item_classes' ) );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.14.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: