Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Admin_Settings::submenu_page()

Adds the “Settings” submenu page


Source Source

File: src/core/admin/admin-settings/admin-settings.php

	private function submenu_page() {
		add_action(
			'admin_menu',
			function() {
				// Add submenu
				add_submenu_page(
					'edit.php?post_type=uo-recipe',
					/* translators: 1. Trademarked term */
					sprintf( esc_attr__( '%1$s settings', 'uncanny-automator' ), 'Uncanny Automator' ),
					esc_attr__( 'Settings', 'uncanny-automator' ),
					'manage_options',
					'uncanny-automator-config',
					array( $this, 'submenu_page_output' )
				);
			}
		);
	}