In this video we’ll see the menu section of wordpress.

We will make option menu tab for our custom settings.

To make admin menu page we should use add_menu_page of wp, have a look over its syntax

Syntax:
======================
add_menu_page( string $page_title, string $menu_title, string $capability, string $menu_slug, callable $function = ”, string $icon_url = ”, int $position = null )

This function takes a capability which will be used to determine whether or not a page is included in the menu.

The function which is hooked in to handle the output of the page must check that the user has the required capability as well.

Here! in our code as,
==========================
add_action(“admin_menu”,”mythemeoptios”);

function mythemeoptios(){

/// menu page code to be added at admin panel
add_menu_page(
“theme-options”, // page title
“Theme Options”, // Menu title
“manage_options”, // capability
“theme-options”, // menu slug
“mycustom_options”, // callback function
“dashicons-sticky” // icon
);

}

SOCIAL :
===============
Subscribe :
FACEBOOK :
TWITTER:
BLOG:

RECOMMENDATION:
===============
1. Some knowledge of PHP, HTML for this video series
2. How to Install WordPress:
3. Read documentation of add_menu_page in wp:

Also you can learn WordPress Custom
===============
Wordpress Theme Development:

WordPress Widget Development:

WordPress Plugin Development:

Learn backbone.js here! :

Some of our important videos
========================
Insert data to wordpress table,

Make wordpress page while activating plugin

Make database table when plugin activates,

Tags
===============
online web tutor,
profotech solutions,
wordpress theme options development
wordpress theme options
wordpress theme options framework
wordpress theme options panel
wordpress theme options panel tutorial
wordpress theme options upload image
wordpress theme options tutorial
wordpress theme customization in hindi

Thanks
Online Web Tutor
Keep learning and Sharing 🙂

Nguồn: https://tncpartner.com/

Xem thêm bài viết: https://tncpartner.com/category/cong-nghe/