Astra_Ext_Nav_Menu_Markup::create_rest_routes()
Creating rest routes for mega menu
Description
Return
(void)
Source
File: addons/nav-menu/classes/class-astra-ext-nav-menu-markup.php
public function create_rest_routes() { register_rest_route( 'astra_addon/v1', '/mega_menu/(?P<id>\d+)', array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'get_mega_menu_option' ), 'permission_callback' => array( $this, 'get_mega_menu_option_permission' ), ) ); register_rest_route( 'astra_addon/v1', '/mega_menu', array( 'methods' => WP_REST_Server::EDITABLE, 'callback' => array( $this, 'set_mega_menu_option' ), 'permission_callback' => array( $this, 'set_mega_menu_option_permission' ), ) ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |