Skip to content

Instantly share code, notes, and snippets.

View markodenic's full-sized avatar
🏠
Working from home

Marko Denic markodenic

🏠
Working from home
View GitHub Profile
function my_custom_post_event () {
$labels = array(
'name' => _x('Event', 'post type general name'),
'singular_name' => _x('Event', 'post type singular name'),
'add_new' => _x('Add new event', 'event'),
'add_new_item' => __('Add new event'),
'edit_item' => __('Edit event'),
'new_item' => __('New event'),
'all_items' => __('All events'),
'view_item' => __('View event'),
if (!function_exists('dd')) {
function dd() {
echo '<pre>';
$vars = func_get_args();
call_user_func_array('var_dump', $vars);
echo '</pre>';
die;
}
}