EP_Test_Base::setup_test_post_type PHP Method

setup_test_post_type() public method

Setup a few post types for testing
Since: 1.0
    public function setup_test_post_type()
    {
        $args = array('public' => true, 'taxonomies' => array('post_tag', 'category'));
        register_post_type('ep_test', $args);
        // Post type that is excluded from search.
        $args = array('taxonomies' => array('post_tag', 'category'), 'exclude_from_search' => true);
        register_post_type('ep_test_excluded', $args);
        // Post type that is excluded from search.
        $args = array('taxonomies' => array('post_tag', 'category'), 'public' => false);
        register_post_type('ep_test_not_public', $args);
    }