WorkoutsOfficials – Exercise
Exercise Log
if ( ! function_exists('kdc_wo_exercise') ) { // Register Custom Post Type function kdc_wo_exercise() { $labels = array( 'name' => _x( 'Exercise Logs', 'Post Type General Name', 'kdc' ), 'singular_name' => _x( 'Exercise Log', 'Post Type Singular Name', 'kdc' ), 'menu_name' => __( 'Exercise Log', 'kdc' ), 'name_admin_bar' => __( 'Exercise Log', 'kdc' ), 'archives' => __( 'Log History', 'kdc' ), 'attributes' => __( 'Log Attributes', 'kdc' ), 'parent_item_colon' => __( 'Parent Log:', 'kdc' ), 'all_items' => __( 'All Logs', 'kdc' ), 'add_new_item' => __( 'Add New Log', 'kdc' ), 'add_new' => __( 'Add New', 'kdc' ), 'new_item' => __( 'New Log', 'kdc' ), 'edit_item' => __( 'Edit Log', 'kdc' ), 'update_item' => __( 'Update Log', 'kdc' ), 'view_item' => __( 'View Log', 'kdc' ), 'view_items' => __( 'View Logs', 'kdc' ), 'search_items' => __( 'Search Log', 'kdc' ), 'not_found' => __( 'Not found', 'kdc' ), 'not_found_in_trash' => __( 'Not found in Trash', 'kdc' ), 'featured_image' => __( 'Progress Photo', 'kdc' ), 'set_featured_image' => __( 'Set progress photo', 'kdc' ), 'remove_featured_image' => __( 'Remove progress photo', 'kdc' ), 'use_featured_image' => __( 'Use as progress photo', 'kdc' ), 'insert_into_item' => __( 'Insert into log', 'kdc' ), 'uploaded_to_this_item' => __( 'Uploaded to this log', 'kdc' ), 'items_list' => __( 'Logs entry', 'kdc' ), 'items_list_navigation' => __( 'Logs entry navigation', 'kdc' ), 'filter_items_list' => __( 'Filter logs entry', 'kdc' ), ); $rewrite = array( 'slug' => 'log', 'with_front' => true, 'pages' => true, 'feeds' => false, ); $args = array( 'label' => __( 'Exercise Log', 'kdc' ), 'description' => __( 'Exercise Log for Workouts Official', 'kdc' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ), 'taxonomies' => array( 'exercise_log_period' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-format-aside', 'show_in_admin_bar' => false, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => false, 'rewrite' => $rewrite, 'capability_type' => 'post', 'show_in_rest' => true, ); register_post_type( 'exercise_log', $args ); } add_action( 'init', 'kdc_wo_exercise', 0 ); }