Home / APIs / _autop_newline_preservation_helper() – Newline preservation help function for wpautop

You appear to be a bot. Output may be restricted

Description

Newline preservation help function for wpautop

Usage

$string = _autop_newline_preservation_helper( $matches );

Parameters

$matches
( array ) required – preg_replace_callback matches array

Returns

string

Source

File name: wordpress/wp-includes/formatting.php
Lines: 1 to 3 of 3

function _autop_newline_preservation_helper( $matches ) {
  return str_replace( "\n", "<WPPreserveNewline />", $matches[0] );
}
 

 View on GitHub View on Trac

Published: 10th March 2017 | Last updated: 10th March 2017

Information

Function name: _autop_newline_preservation_helper
Plugin ref: WordPress
Version: 5.0.3
Sourcefile: wp-includes/formatting.php
File ref: wp-includes/formatting.php
API type: private
Deprecated?: No
API Letters: _,A,H,N,P

  • Plugins
  • Themes
  • Blocks
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
WP-a2z WordPress core a2z
WordPress core only

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins