😁wpautop Replaces double line breaks with paragraph elements (ok)
https://developer.wordpress.org/reference/functions/wpautop/
<?php
$some_long_text = // Start Text
Some long text
that has many lines
and paragraphs in it.
// end text
echo wpautop( $some_long_text );
?>
<p>Some long text<br/>
that has many lines</p>
<p>and paragraphs in it.</p>
Previousadmin_init is triggered before any other hook when a user accesses the admin area (ok)NextHow to Customize the WordPress Admin Dashboard Without a Plugin (ok)
Last updated
Was this helpful?