Switch language

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




preview_theme_ob_filter [ WordPress Function ]

preview_theme_ob_filter ( $content )
Access:
  • private
Parameters:
  • (string) $content
Returns:
  • (string)
Defined at:



Callback function for ob_start() to capture all links in the theme.

Source


<?php
function preview_theme_ob_filter$content ) {
    return 
preg_replace_callback"|(<a.*?href=([\"']))(.*?)([\"'].*?>)|"'preview_theme_ob_filter_callback'$content );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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