Thêm Active vào plugin

1. Phía Server 2. Phía Client a) Thêm trang để nhập active Nên tạo 1 folder activate để lưu 2 tệp là activate-check.php và activate-page.php b) Gọi nó ra

Tạo plugin hiển thị danh sách trong database (datalist table)

1. Tạo plugin Tạo folder lưu php thực thi. Ví dụ pt-get-table-recuiter Trong folder, bắt buộc có file php trùng tên folder plugin. 2. Tài liệu tham khảo https://github.com/supporthost-com/WP_List_Table/blob/main/supporthost-admin-table.php https://supporthost.com/wp-list-table-tutorial/

Custom Post Type, Custom Taxonomies

1. Tạo Custom Post, Custom Taxonomies Dùng plugin Custom Post Type UI hỗ trợ cho tiện. 1.1 Custom Post Chú ý các phần sau: 1.2 Custom Taxonomies Chú ý các phần sau: 2. Xóa đường dẫn (slug) custom post, custom taxonomies 2.1 Xóa đường dẫn custom post Hoặc https://wordpress.org/plugins/remove-cpt-base/ 2.2 Xóa đường dẫn custom taxonomies

Tạo action Cronjob

1. Tạo function và action cronjob (crontab) Trong hàm creat_cronjob ta có thể tạo code để xử lý 2. Gọi cronjob bằng code 2.1 Gọi trực tiếp 2.2 Gọi và đẩy vào cronjob Ví dụ về thời gian: 3. Cài plugin wp-crontrol để quản lý cronjob 4. Các lệnh khác 4.1 Xem cronjob đang chạy Tham khảo https://www.smashingmagazine.com/2013/10/schedule-events-using-wordpress-cron/ https://www.elegantthemes.com/blog/tips-tricks/how-to-add-cron-jobs-to-wordpress