Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_richedit_pre [ WordPress Function ]

wp_richedit_pre ( $text )
Parameters:
  • (string) $text The text to be formatted.
Returns:
  • (string) The formatted text after filter is applied.
Defined at:



Formats text for the rich text editor.

The filter 'richedit_pre' is applied here. If $text is empty the filter will be applied to an empty string.

Source


<?php
function wp_richedit_pre($text) {
    
// Filtering a blank results in an annoying <br />\n
    
if ( empty($text) ) return apply_filters('richedit_pre''');

    
$output convert_chars($text);
    
$output wpautop($output);
    
$output htmlspecialchars($outputENT_NOQUOTES);

    return 
apply_filters('richedit_pre'$output);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics