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.
Line | Code |
---|---|
264 | if ( '' != get_option('permalink_structure') ) { |
265 | $url = trailingslashit( get_permalink() ) . 'feed'; |
266 | if ( 'rss2' != $feed ) |
267 | $url .= "/$feed"; |
268 | $url = user_trailingslashit($url, 'single_feed'); |
269 | } else { |
270 | $url = get_option('home') . "/?feed=$feed&p=$id"; |
271 | } |
272 |
|
273 | return apply_filters('post_comments_feed_link', $url); |
274 | } |
275 |
|
276 | function edit_post_link($link = 'Edit This', $before = '', $after = '') { |
277 | global $post; |
278 |
|
279 | if ( is_attachment() ) |
280 | return; |
281 |
|
282 | if( $post->post_type == 'page' ) { |