membuat custom post type Wordpress
/*mendaftarkan type post*/ add_action( 'init', function() { $type = 'study'; $label = 'Studies'; $arguments = [ 'public' => true, // Allow access to post type 'description' => 'Case studies for portfolio.', // Add a description 'label' => $label // Set the primary label ]; register_post_type( $type, $arguments); }); /*labeling / menganti label*/ function xcompile_post_type_labels($singular = 'Post', $plural = 'Posts') { $p_lower = strtolower($plural); $s_lower = strtolower($singular); return [ 'name' => $plural, 'singular_name' => $singular, 'add_new_item' => "New $singular", 'edit_item' => "Edit $singular", ...