# shortcode-variables/1.5.1/includes/hooks.php

Snippet Shortcodes, version 1.5.1. 17 lines.

- Page: https://pluginprobe.com/plugins/shortcode-variables/1.5.1/code/includes/hooks.php
- Raw: https://pluginprobe.com/plugins/shortcode-variables/1.5.1/raw/includes/hooks.php
- Modified: 2015-10-26T10:12:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shortcode-variables/1.5.1/code/includes/hooks.php#L10-L20`.

```php
<?php

defined('ABSPATH') or die('Jog on!');

function sh_cd_build_admin_menu()
{
	add_menu_page( SH_CD_PLUGIN_NAME, SH_CD_PLUGIN_NAME, 'manage_options', 'sh-cd-shortcode-variables-main-menu', 'sh_cd_user_defined_page', 'dashicons-editor-kitchensink' );

	// Hide duplicated sub menu (wee hack!)
	add_submenu_page( 'sh-cd-shortcode-variables-main-menu', '', '', 'manage_options', 'sh-cd-shortcode-variables-main-menu', 'sh_cd_user_defined_page');

	// Add sub menus
	add_submenu_page( 'sh-cd-shortcode-variables-main-menu', __('Your Shortcodes'),  __('Your shortcodes'), 'manage_options', 'sh-cd-shortcode-variables-user-defined', 'sh_cd_user_defined_page');
	add_submenu_page( 'sh-cd-shortcode-variables-main-menu', __('Premade Shortcodes'),  __('Premade shortcodes'), 'manage_options', 'sh-cd-shortcode-variables-sub-premade', 'sh_cd_premade_shortcodes_page');
}
add_action( 'admin_menu', 'sh_cd_build_admin_menu' );

```
