I tried the following in events-maker.php. It results in a fatal error:
add_action( ‘init’, array( &$this,
‘change_post_object_label’ ), 0 );
}
function change_post_object_label() {
global $wp_post_types;
$labels = &$wp_post_types[‘post’]->labels;
$labels->name = ‘Happenings’;
$labels->singular_name = ‘Happening’;
$labels->add_new = ‘Add new’;
$labels->add_new_item = ‘Add Happening article’;
$labels->edit_item = ‘Edit Happening’;
$labels->new_item = ‘Happening’;
$labels->view_item = ‘View happening’;
$labels->search_items = ‘Search happening’;
$labels->not_found = ‘No happening found’;
$labels->not_found_in_trash = ‘No happenings found in the trash’;
$labels->all_items = ‘All happenings’;
$labels->menu_name = ‘Happenings’;
$labels->name_admin_bar = ‘Happenings’;
}