TODO: To change the header's content go to Dr.Explain menu Options : Project Settings : HTML (CHM) Export : Setup HTML Template and Layout
×
Menu
Index

Admin Page Class

Tạo trang options cho theme sử dụng lớp Admin Page Class.
Download: https://github.com/bainternet/Admin-Page-Class/
 
Tạo trường options.
Tài liệu: https://en.bainternet.info/my-options-panel/
 
Chú ý: 'page_title' không chứa ký tự UTF-8
 
Lấy giá trị options.
Lấy mảng giá trị các options bởi tên, gọi bởi hàm get_option().
//get the data to an array
$data = get_option('demo_options');    #value of 'option_group'
//access each field by its id
echo $data['text_field_id'];
Made with help of Dr.Explain

Unregistered version