WordPress at Your Fingertips
function is not described

_restore_wpautop_hook() WP 5.0.0

for subsequent the_content

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.


String. The unmodified content.


_restore_wpautop_hook( $content );
$content(string) (required)
The post content running through this filter.

Code of _restore_wpautop_hook() WP 5.8.3

function _restore_wpautop_hook( $content ) {
	$current_priority = has_filter( 'the_content', '_restore_wpautop_hook' );

	add_filter( 'the_content', 'wpautop', $current_priority - 1 );
	remove_filter( 'the_content', '_restore_wpautop_hook', $current_priority );

	return $content;