The built-in word press function adds pages to the menu. Parameter list required$ Parent\u slug$page\u title$menu\title$ability $menu\slug$function lines 71-78 define all relevant parameters of the function. Also connect the wpw\welcome\u page() function to the admin\u menu operation on lines 56-57. Up to now, the basic structure of the welcome page has been completed. When a user activates a plug-in, the plug-in redirects to a blank page. Now you need to add the welcome page view. The
The last parameter of the add_subminu_page function calls other functions responsible for the welcome page view again. This function is called wpw\u welcome\u page\u content (), including welcome view. Contains the welcome page view file, such as PHP. Then, the function of putting the welcome page style sheet on the queue was added in lines 100-129. Note: since the stylesheet only wants to be added to the start page, we created a global variable to store the ID of subnu_page in a variable named $wpw\sub\menu. Since the parameter $hook is currently used to help compare the administrative page ID with the starting page ID (such as $wpw\sub\menu), WP only queues the stylesheet of the starting page with the help of a simple protected area. The
Welcome page directory to process the welcome page view, welcome view. Created a file named PHP. This file is responsible for redirecting all html\/css code on the user’s start page. The code of this file is as follows: Male
Male
Male
Male male
Male
Male
Male
Male male
Male
Male start male
Male
Male stage I: malelorem Ipsum door sit met, connected to tur adipissing elit. Male
Male stage II: malecras sed sapien Quam. Sed dapibus EST ID enim cilisis lig Male
Male stage 3: maletortoise EST Congo iguana, Quam ligula utpurus released by EU. Male
Male
Male
Male
What’s in it? Male
Male
Male
Male male
Male
Male
Male
Male
Male
Male
Male male
Male male
Male
Male
Male
Male male
Male male
Male
Male
Male
Male
Male
Male male
Male male
Male
Male
Male
Male male
Male male
Male
Male
Male
In lines 1-20, you can find the standard WP PHP document block and abspath check, and you can also define variables used internally in HTML. The
Lines 22-78 contain all contents, classes, assets, etc. The WordPress core team found several classes for building simple grid based column layouts. The start page layout that this code can implement contains the following elements: Plug in name, version, and logo step by step tutorial video tutorial column 2 layout plug in features style. Use the custom style of CSS file WP to start the page common sentences – the test is finally the turn to set up the page. To achieve this, the following settings are required: The
On the welcome page of the demo website of WP welcome page boilerplate WordPress installation ed from GitHub, after activating the common tool plug-in installation and activating the plug-in, you will be redirected to the welcome page. Here, you can see the full layout of the start page in the screenshot below. The first is a brief introduction to the plug-in and the logo. Then you can find the startup steps. The following is a video tutorial. Provides a more real-time view of how the plug-in works. Finally, you will see a section listing the main features of the product. Participants, new and future features, subscription forms
You can also add sections. After drawing the conclusion, we will conclude the series of articles on WordPress products to improve the user experience. After directly implementing this step, more users have used my plug-in. I hope it works for you, too. Finally, you can see all my articles on my profile page, follow me on my blog, or contact me on twitter @mrahmadawais. Write the development workflow according to the idea of WordPress. Don’t hesitate as usual. Please leave questions or comments below. I will answer every item.