WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
51 | $output = stripslashes($post->post_title); |
52 | if (!empty($post->post_password)) { // if there's a password |
53 | $output = 'Protected: ' . $output; |
54 | } |
55 | return $output; |
56 | } |
57 |
|
58 | function the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { |
59 | $content = get_the_content($more_link_text, $stripteaser, $more_file); |
60 | $content = apply_filters('the_content', $content); |
61 | $content = str_replace(']]>', ']]>', $content); |
62 | echo $content; |
63 | } |
64 |
|
65 | function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) { |
66 | $content = get_the_content($more_link_text, $stripteaser, $more_file); |
67 | $content = apply_filters('the_content', $content); |
68 | if ($cut && !$encode_html) { |
69 | $encode_html = 2; |
70 | } |
71 | if ($encode_html == 1) { |
72 | $content = htmlspecialchars($content); |
73 | $cut = 0; |
74 | } elseif ($encode_html == 0) { |
75 | $content = make_url_footnote($content); |
76 | } elseif ($encode_html == 2) { |