This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!function_exists('dd')) { | |
function dd() { | |
echo '<pre>'; | |
$vars = func_get_args(); | |
call_user_func_array('var_dump', $vars); | |
echo '</pre>'; | |
die; | |
} | |
} |