Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hyowgo

    (@hyowgo)

    Anybody got any ideas?

    Thread Starter hyowgo

    (@hyowgo)

    Sorry to double post – but I’m guessing the answer is changing something within the wcs3_db.php file, but I don’t what, and am hesitant to try for fear of breaking something…

    JiveDig

    (@jivedig)

    This is working for me.

    // Change args of custom post type created in a plugin
    add_action('init', 'tsm_class_register_post_type');
    function tsm_class_register_post_type() {
    
    	// Change 'wcs3_class' slug to 'program'
        register_post_type(
            'wcs3_class',
            array(
                'labels' => array(
    				'name'          => __('Programs'),
    				'singular_name' => __('Program')
                ),
    			'public'      => true,
    			'has_archive' => true,
    			'rewrite'     => array(
                    'slug' => 'program'
                )
            )
        );
    
    	// Change 'wcs3_instructor' slug to 'instructor'
        register_post_type(
            'wcs3_instructor',
            array(
                'labels' => array(
    				'name'          => __('Instructors'),
    				'singular_name' => __('Instructor')
                ),
    			'public'      => true,
    			'has_archive' => true,
    			'rewrite'     => array(
                    'slug' => 'instructor'
                )
            )
        );
    
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Removing the WCS Prefix’ is closed to new replies.