1. Home
  2. /
  3. Wordpress-php-plugins
  4. /
  5. Custom Admin Menu Plugin

Custom Admin Menu Plugin - Wordpress-php-plugins Typing CST Test

Loading…

Custom Admin Menu Plugin — Wordpress-php-plugins Code

Adds a custom menu item in the WordPress admin dashboard.

<?php
/*
Plugin Name: Admin Menu Plugin
Description: Adds a custom admin menu.
Version: 1.0
Author: Your Name
*/

add_action('admin_menu', 'custom_admin_menu');
function custom_admin_menu() {
	add_menu_page('My Plugin Page', 'My Plugin', 'manage_options', 'my-plugin', 'my_plugin_page');
}
function my_plugin_page() {
	echo '<h1>Welcome to My Plugin</h1>'
}

Wordpress-php-plugins Language Guide

WordPress is an open-source content management system (CMS) written in PHP, widely used for building websites and blogs. Its plugin ecosystem allows extending functionality, from e-commerce to SEO, without heavy custom coding.

Primary Use Cases

  • ▸Blogging and personal websites
  • ▸Corporate and business websites
  • ▸E-commerce stores via WooCommerce
  • ▸Portfolio and gallery websites
  • ▸Membership portals and online communities

Notable Features

  • ▸Open-source and highly customizable
  • ▸Thousands of free and premium plugins
  • ▸Themes for flexible design
  • ▸REST API for integrations
  • ▸User management and role permissions

Origin & Creator

WordPress was created in 2003 by Matt Mullenweg and Mike Little as a fork of b2/cafelog blogging software.

Industrial Note

WordPress powers millions of websites worldwide, from small blogs to enterprise portals, making it dominant in CMS and web publishing, with extensive plugin support for specialized industries.

More Wordpress-php-plugins Typing Exercises

Hello World WordPress PluginSimple Admin Notice PluginShortcode Example PluginCustom Footer Text PluginEnqueue Custom Script PluginCustom Post Type PluginWidget Example PluginCustom REST API Endpoint Plugin

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher