Thanks to @Joseinnewworld, who has purchased our 2 #NFTs and is willing to test our site updates, for the convenience of all, I will activate the testing product so that it can be used together and does not burden the testers with a large cost. pic.twitter.com/1Fj3SkHKst
— Gaexe (@gaexe_) February 14, 2025
Subject
- Wordpress Installation
- Creating a Wordpress Plugin
1. Wordpress Installation
- Prepare the latest WordPress file. If you don't have it, you can download it first or download it directly from WordPress.org or from my flash drive. 2. Open the XAMPP folder on your computer. Then open the htdocs folder. Create a my blog folder, extract the WordPress file into this folder.
- Open the XAMPP folder on your computer. Then open the htdocs folder. Create a myblog folder, extract the WordPress files into this folder.
- Open a browser, type http://localhost/phpmyadmin , create a database, for example the database name: my blog
- Open a new browser tab, type http://localhost/blogku , then click Select English, click continue
- Click Let's Go. Fill in the database name, user name, and password that you created earlier. See the next image ...
- Then click submit
- Click Run install
- Fill in the required data for the admin and website name. After that click install wordpress. Remember this is just an exercise, fill in the username and password that are easiest to remember, if necessary write it down in notepad! See the next picture...
- Now click login
2. Create a Wordpress Plugin
- Create a file named myplugin.php save it in the wp-content > plugins folder. Type the plugin description as shown in the image below.
- Log in to the WordPress admin dashboard, click plugins on the sidebar menu.
- Yes? Open myplugin.php again, call the wp-list-table class from WordPress, create a new class named My_book
- Fill in the example book data in the My_book class
- Below example_data, still in the My_book class, create 3 functions: get_columns(), prepare_items(), column_default. see the following image:
- Now create a function outside the My_book class loop so that your plugin appears in the admin menu.
- Look at the pink block, it has to be the same.
- Now open the dashboard, click the plugin menu, click Activate
- If your code is correct, the plugin menu will appear in the sidebar.
Source
IKB112312, EL RAHMA COLLEGE OF SCIENCE, By: Wahyu Widodo.