TODO: To change the footer's content go to Dr.Explain menu Options : Project Settings : HTML (CHM) Export : Setup HTML Template and Layout
Sửa nhãn Post Type (menu)
Sửa nhãn kiểu dữ liệu:
Một ví dụ khác sửa cài đặt mặc định của kiểu 'post'. Tuy nhiên không hoàn toàn, một số thành phần khác được hook khác quản lý. Nếu muôn sửa toàn diện bạn cần kết hợp các hooks với nhau. Chẳng hạn sửa được nhãn hiển thị của kiểu post.
function revcon_change_post_object() {
global $wp_post_types;
$labels = &$wp_post_types['post']->labels;
$labels->name = 'News x';
$labels->singular_name = 'News x';
$labels->add_new = 'Add News x';
$labels->add_new_item = 'Add News x';
$labels->edit_item = 'Edit News x';
$labels->new_item = 'News x';
$labels->view_item = 'View News x';
$labels->search_items = 'Search News x';
$labels->not_found = 'No News found x';
$labels->not_found_in_trash = 'No News found in Trash x';