Astra_Admin_Settings::register_pro_menu()

Register Custom Layout & Page Header Pro sub-menus.


Description

Add new admin pages as sub-menu under the main Astra Options menu.

Fired by admin_menu action.


Source

File: inc/core/class-astra-admin-settings.php

		public static function register_pro_menu() {
			add_theme_page(
				__( 'Custom Layouts', 'astra' ),
				__( 'Custom Layouts', 'astra' ),
				'edit_theme_options',
				'astra-advanced-hook',
				__CLASS__ . '::preview_custom_layout'
			);
			add_theme_page(
				__( 'Page Headers', 'astra' ),
				__( 'Page Headers', 'astra' ),
				'edit_theme_options',
				'astra_adv_header',
				__CLASS__ . '::preview_page_header'
			);
		}

Changelog

Changelog
Version Description
3.9.4 Introduced.

User Contributed Notes

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