Switch language

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




_cleanup_header_comment [ WordPress Function ]

_cleanup_header_comment ( $str )
Parameters:
  • (string) $str
Returns:
  • (string)
Defined at:



Strip close comment and close php tags from file headers used by WP.

See http://core.trac.wordpress.org/ticket/8497

Source


<?php
function _cleanup_header_comment($str) {
    return 
trim(preg_replace("/\s*(?:\*\/|\?>).*/"''$str));
}
?>

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