You appear to be a bot. Output may be restricted
Description
Unregister existing post types and register defaults.Run before each test in order to clean up the global scope, in case a test forgets to unregister a post type on its own, or fails before it has a chance to do so.
Usage
WP_UnitTestCase::reset_post_types();
Parameters
Returns
voidSource
File name: oik-batch/tests/testcase.phpLines:
1 to 6 of 6
protected function reset_post_types() { foreach ( get_post_types() as $pt ) { _unregister_post_type( $pt ); } create_initial_post_types(); }View on GitHub