Function Reference: _set_default_permalink_structure_for_tests

Summary

Set a permalink structure.

Description

Hooked as a callback to the ‘populate_options’ action, we use this function to set a permalink structure during
`wp_install()`, so that WP doesn’t attempt to do a time-consuming remote request.

Change Log

Since: 4.2.0

Source Code

function _set_default_permalink_structure_for_tests() {
	update_option( 'permalink_structure', '/%year%/%monthnum%/%day%/%postname%/' );
}